/** * Shutdown Orient engine. */ @Override public void run() { try { Orient.instance().shutdown(); } finally { OLogManager.instance().shutdown(); } }
@Override public void contextDestroyed(ServletContextEvent sce) { if (OGlobalConfiguration.INIT_IN_SERVLET_CONTEXT_LISTENER.getValueAsBoolean()) { final Orient orient = Orient.instance(); if (orient != null) { OLogManager.instance().infoNoDb(this, "Shutting down of OrientDB engine because web application is going to be stopped"); orient.shutdown(); OLogManager.instance().shutdown(); } } } }