168169170171172173174175176177178
resp.sendError(HttpServletResponse.SC_SERVICE_UNAVAILABLE); } }); Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() { public void run() { srv.notifyStop(); srv.destroyAllServlets(); } })); Thread exposerThread = new Thread("ContextExposer") { public void run() {
355356357358359360361362363364365
throw new LoadingException(e); } finally { SessionProvider sp = config.getSessionProvider(); if (sp != null) sp.notifyStop(); // If the application has Ioc, depose it Ioc ioc = config.getIoc(); if (null != ioc) ioc.depose(); }
368369370371372373374375376377378