Community
Participate
Working Groups
By default or set ejb.lookup=false in test.properties, the jpa tests will run against injected entity manager factory and entity manager, by setting ejb.lookup=true in test.properties, the tests will run against entity manager factory and entity manager from jndi lookup. The changed files are: test.properties: add ejb.lookup property weblogic.xml: add <sysproperty key="ejb.lookup" value="${ejb.lookup}"/> to "weblogic-start-nosleep" target ejb-jar.xml: change persistence-context-ref-name to point "persistence/default/entity-manager", change persistence-unit-ref-name to "persistence/default/factory" org.eclipse.persistence.testing.framework.server.JEEPlatform: change getEntityManager() and getEntityManagerFactory() to add condition about injection and jndi lookup
Created attachment 149909 [details] this patch will add support for jpa testframework to be able to run tests on server against entity manager from injection and jndi lookup both
checked in patch in Main as revision 5581.
code reviewed by James Sutherland & Edwin Tang.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink