- method closeconnection in class DatabaseManager modified in order to close the SessionFactory.

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-access/DatabasesResourcesManager@100987 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Loredana Liccardo 2014-10-24 16:44:30 +00:00
parent 71cafbc5df
commit cba62f48f0
1 changed files with 6 additions and 3 deletions

View File

@ -313,9 +313,12 @@ public class DatabaseManagement {
// close the connection
public void closeConnection() {
sourceDBSession.close();
if(sourceDBSession!=null){
sourceDBSession.close();
AnalysisLogger.getLogger().debug(
"In DatabaseManagement->Connection closed");
sourceDBSession = null;
}
}
/**