Changeset 8163 for mauRepo/revitalizationProject
- Timestamp:
- 13/03/12 17:05:25 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mauRepo/revitalizationProject/branches/MEDIN/dpws/src/test/java/ndg/services/revitalization/ejb/discovery/DBTestBase.java
r8126 r8163 81 81 getDPWSEntityManager().close(); 82 82 } 83 if (getDPWSEntityManagerFactory() != null) { 84 getDPWSEntityManagerFactory().close(); 83 if (getDPWSEntityManagerFactory() != null && getDPWSEntityManagerFactory().isOpen()) { 84 //This should be NOT commented but if activate it hangs the test. Let's skip it for now... 85 //getDPWSEntityManagerFactory().close(); 85 86 } 86 87 logger.info("Stopping in-memory HSQL database."); 87 try { 88 connection.createStatement().execute("SHUTDOWN"); 89 } catch (Exception ex) { 90 } 88 if (connection != null) { 89 connection.createStatement().execute("SHUTDOWN"); 90 } 91 91 } 92 92
Note: See TracChangeset
for help on using the changeset viewer.