Strabon

changeset 754:d744ba95f73e

remove lock on connection close in Strabon
author Babis Nikolaou <charnik@di.uoa.gr>
date Thu Nov 29 14:37:13 2012 +0200 (2012-11-29)
parents becebb2ff70c
children 8d1d1e8229b7
files runtime/src/main/java/eu/earthobservatory/runtime/generaldb/Strabon.java
line diff
     1.1 --- a/runtime/src/main/java/eu/earthobservatory/runtime/generaldb/Strabon.java	Thu Nov 29 14:23:57 2012 +0200
     1.2 +++ b/runtime/src/main/java/eu/earthobservatory/runtime/generaldb/Strabon.java	Thu Nov 29 14:37:13 2012 +0200
     1.3 @@ -166,8 +166,17 @@
     1.4  			con1.close();
     1.5  			repo1.shutDown();
     1.6  			
     1.7 +			// delete the lock as well
     1.8 +			checkAndDeleteLock(databaseName, user, password, port, serverName);
     1.9 +			
    1.10  		} catch (RepositoryException e) {
    1.11  			logger.error("[Strabon.close]", e);
    1.12 +			
    1.13 +		} catch (SQLException e) {
    1.14 +			logger.error("[Strabon.close] Error in deleting lock", e);
    1.15 +			
    1.16 +		} catch (ClassNotFoundException e) {
    1.17 +			logger.error("[Strabon.close] Error in deleting lock", e);
    1.18  		}
    1.19  
    1.20  		logger.info("[Strabon.close] Connection closed.");