Changeset 8163 for mauRepo


Ignore:
Timestamp:
13/03/12 17:05:25 (8 years ago)
Author:
mnagni
Message:

Commented the EntityManagerFactory?.close() (was causing the build to hang)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/revitalizationProject/branches/MEDIN/dpws/src/test/java/ndg/services/revitalization/ejb/discovery/DBTestBase.java

    r8126 r8163  
    8181                        getDPWSEntityManager().close(); 
    8282                } 
    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(); 
    8586                } 
    8687                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                }                        
    9191        }        
    9292 
Note: See TracChangeset for help on using the changeset viewer.