/** * Shutdown the Sesame repository. Should be called on service deactivation. */ @Override @PreDestroy public synchronized void shutdown() { restartLock.writeLock().lock(); try { if(repository != null) { log.info("Apache Marmotta Sesame Repository Service shutting down ..."); try { repository.shutDown(); } catch (RepositoryException e) { log.error("error while shutting down Apache Marmotta Sesame repository",e); } repository = null; } } finally { restartLock.writeLock().unlock(); } }
/** * Shutdown the Sesame repository. Should be called on service deactivation. */ @Override @PreDestroy public synchronized void shutdown() { restartLock.writeLock().lock(); try { if(repository != null) { log.info("Apache Marmotta Sesame Repository Service shutting down ..."); try { repository.shutDown(); } catch (RepositoryException e) { log.error("error while shutting down Apache Marmotta Sesame repository",e); } repository = null; } } finally { restartLock.writeLock().unlock(); } }