@Override protected void onDestroy() { log.debug("Running shutdown steps"); if (loginSessionCloser != null) loginSessionCloser.interrupt(); this.getHibernateSessionFactory(null).close(); super.onDestroy(); }
@Override protected void init() { log.debug("Starting CWM Application Init"); super.init(); Injector.get().inject(this); mailHost = configuration.getProperty("cwm.mailHost"); mailFromAddress = configuration.getProperty("cwm.mailFromAddress"); getDebugSettings().setOutputMarkupContainerClassName(true); initResponseTypes(); loadContent(); runDatabaseInitializers(); configureMountPaths(); loginSessionCloser = new LoginSessionCloser(this); loginSessionCloser.start(); log.debug("Finished CWM Application Init"); }