Community
Participate
Working Groups
Andrei added the test recently on Dec 17, 2010 in revision as for fix of bug 332683, the test failed on Spring with following error message: Test problem: connection should be not pooled junit.framework.AssertionFailedError: Test problem: connection should be not pooled at org.eclipse.persistence.testing.tests.jpa.advanced.EntityManagerJUnitTestSuite.testNonPooledConnection(EntityManagerJUnitTestSuite.java:10032) at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBare(JUnitTestCase.java:499)
Created attachment 186437 [details] test patch It seems that there is no way to pass EntityManager properties to a managed EntityManager in Spring: like app. server JTA case transaction is required to wrapped EntityManagerImpl to appear Spring's EntityManager wrapper; but unlike app. server JTA case, Spring immediately acquires connection on begin transaction therefore passing of connection properties after beginTransaction is too late - connection is already has been acquired. In Spring case the test uses app. managed entity manager.
Fixed in trunk.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink