-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
persistence_1.0.0.next, persistence_1.0.0.Alpha7
-
None
Once ARQ-2042 was resolved, I rebuilt arquillian-persistence against the new arquillian-core
and ran into a problem where the database connection was being closed once the first test
in my class had finished. I see the same pattern in some of the integration tests so I don't
know what is different with my environment (other than openejb-embedded).
After a lot of debugging I finally narrowed the problem down to this change from Alpha6:
private void createDatabaseConnection() { try { if (databaseConnectionProducer.get() != null && !databaseConnectionProducer.get().getConnection().isClosed()) { closeDatabaseConnection(); }
to Alpha7:
private void createDatabaseConnection() { if (databaseConnectionProducer.get()== null) { configureDatabaseConnection(); } } private void configureDatabaseConnection() { try {