Now using connections managed by JPA instead of using JNDI mocking.
[utils] / test / eclipselink / src / main / java / org / wamblee / support / persistence / eclipselink / EclipselinkJpaCustomizer.java
index b03b256df7c795c5a9143720b8dcfcebc244e5fe..1679942b15a6a9716152422fe292b517ef304180 100644 (file)
@@ -40,16 +40,10 @@ public class EclipselinkJpaCustomizer implements JpaCustomizer {
     @Override
     public void customize(PersistenceUnitDescription aPersistenceUnit,
         Map<String, String> aJpaProperties) {
-        // Hack to make JNDI lookup of the datasource work with toplink
-        aJpaProperties.put("eclipselink.session.customizer",
-            JndiSessionCustomizer.class.getName());
-
+  
         // DDL generation
         aJpaProperties.put("eclipselink.ddl-generation", "create-tables");
         
-        // Use JTA transaction type
-        aJpaProperties.put("javax.persistence.transactionType", "JTA");
-        
         // DDL generation
         FileSystemUtils.createDir(new File("target/sql"));
         aJpaProperties.put("eclipselink.application-location", "target/sql");