- // Hack to make JNDI lookup of the datasource work with toplink
- aJpaProperties.put("toplink.session.customizer",
- JndiSessionCustomizer.class.getName());
+
+ // Custom datasource properties.
+ aJpaProperties.put("toplink.jdbc.url", aJpaProperties.get("javax.persistence.jdbc.url"));
+ aJpaProperties.put("toplink.jdbc.user", aJpaProperties.get("javax.persistence.jdbc.user"));
+ aJpaProperties.put("toplink.jdbc.password", aJpaProperties.get("javax.persistence.jdbc.password"));