we decided to use jpa with eclipselink… i actually think this was a good decition, but there are a few problems, when using it with spring… eclipselink needs a LoadTimeWeaver… which can only be loaded by spring, when run with an spring agent… add following argumentline to the VM arguments when run…
-javaagent:${where.ever.it.is}/spring-agent-2.5.6.jar
so unit test need this command… the question, how it will work with maven is completely different… and with mule its an other story…