public void destroy() throws Exception { // END CR 6368085 if( ! initialized ) return; /* CR 6368085 initialized=false; */ // START CR 6368085 super.destroy(); // END CR 6368085 // if we created it, make sure it's also destroyed ((StandardService)service).destroy(); }
public synchronized void destroy() throws Exception { // destroy our child containers, if any Container children[] = findChildren(); super.destroy(); for (int i = 0; i < children.length; i++) { if(children[i] instanceof StandardContext) ((StandardContext)children[i]).destroy(); } }
public void destroy() throws Exception { // destroy our child containers, if any Container children[] = findChildren(); super.destroy(); for (int i = 0; i < children.length; i++) { if(children[i] instanceof StandardContext) ((StandardContext)children[i]).destroy(); } }
public synchronized void destroy() throws Exception { // destroy our child containers, if any Container children[] = findChildren(); super.destroy(); for (int i = 0; i < children.length; i++) { if(children[i] instanceof StandardContext) ((StandardContext)children[i]).destroy(); } }
/** * Destroys this context by cleaning it up completely. * * The problem is that undoing all the config in start() and restoring * a 'fresh' state is impossible. After stop()/destroy()/init()/start() * we should have the same state as if a fresh start was done - i.e * read modified web.xml, etc. This can only be done by completely * removing the context object and remapping a new one, or by cleaning * up everything. * * XXX Should this be done in stop() ? */ @Override public void destroy() throws Exception { super.destroy(); // START SJASAS 6359401 // super.destroy() will stop session manager and cause it to unload // all its active sessions into a file. Delete this file, because this // context is being destroyed and must not leave any traces. if (getManager() instanceof ManagerBase) { ((ManagerBase)getManager()).release(); } // END SJSAS 6359401 instanceListeners.clear(); instanceListenerInstances.clear(); }
context.destroy(); } catch (Throwable t) { logger.warning("Error destroying Tomcat web context " + name, t);
context.destroy(); } catch (Throwable t) { logger.warning("Error destroying Tomcat web context " + name, t);
context.destroy(); } catch (final Throwable t) { logger.warning("Error destroying Tomcat web context " + name, t);
/** Destroy needs to clean up the context completely. * * The problem is that undoing all the config in start() and restoring * a 'fresh' state is impossible. After stop()/destroy()/init()/start() * we should have the same state as if a fresh start was done - i.e * read modified web.xml, etc. This can only be done by completely * removing the context object and remapping a new one, or by cleaning * up everything. */ public synchronized void destroy() throws Exception { if( oname != null ) { // Send j2ee.object.deleted notification Notification notification = new Notification("j2ee.object.deleted", this.getObjectName(), sequenceNumber++); broadcaster.sendNotification(notification); } super.destroy(); // Notify our interested LifecycleListeners lifecycle.fireLifecycleEvent(DESTROY_EVENT, null); instanceListeners = new String[0]; }
/** Destroy needs to clean up the context completely. * * The problem is that undoing all the config in start() and restoring * a 'fresh' state is impossible. After stop()/destroy()/init()/start() * we should have the same state as if a fresh start was done - i.e * read modified web.xml, etc. This can only be done by completely * removing the context object and remapping a new one, or by cleaning * up everything. */ public synchronized void destroy() throws Exception { if( oname != null ) { // Send j2ee.object.deleted notification Notification notification = new Notification("j2ee.object.deleted", this.getObjectName(), sequenceNumber++); broadcaster.sendNotification(notification); } super.destroy(); // Notify our interested LifecycleListeners lifecycle.fireLifecycleEvent(DESTROY_EVENT, null); instanceListeners = new String[0]; }
Container child = engine.findChild(name); engine.removeChild(child); if ( child instanceof ContainerBase ) ((ContainerBase)child).destroy(); } catch (Exception e) { writer.println(smClient.getString("hostManagerServlet.exception",
/** Destroy needs to clean up the context completely. * * The problem is that undoing all the config in start() and restoring * a 'fresh' state is impossible. After stop()/destroy()/init()/start() * we should have the same state as if a fresh start was done - i.e * read modified web.xml, etc. This can only be done by completely * removing the context object and remapping a new one, or by cleaning * up everything. * * XXX Should this be done in stop() ? * */ public void destroy() throws Exception { if( oname != null ) { // Send j2ee.object.deleted notification Notification notification = new Notification("j2ee.object.deleted", this.getObjectName(), sequenceNumber++); broadcaster.sendNotification(notification); } super.destroy(); // Notify our interested LifecycleListeners lifecycle.fireLifecycleEvent(DESTROY_EVENT, null); instanceListeners = new String[0]; }
Container child = engine.findChild(name); engine.removeChild(child); if ( child instanceof ContainerBase ) ((ContainerBase)child).destroy(); } catch (Exception e) { writer.println(smClient.getString("hostManagerServlet.exception",
Container child = engine.findChild(name); engine.removeChild(child); if ( child instanceof ContainerBase ) ((ContainerBase)child).destroy(); } catch (Exception e) { writer.println(smClient.getString("hostManagerServlet.exception",
Container child = engine.findChild(name); engine.removeChild(child); if ( child instanceof ContainerBase ) ((ContainerBase)child).destroy(); } catch (Exception e) { writer.println(smClient.getString("hostManagerServlet.exception",
Container child = engine.findChild(name); engine.removeChild(child); if ( child instanceof ContainerBase ) ((ContainerBase)child).destroy(); } catch (Exception e) { writer.println(smClient.getString("hostManagerServlet.exception",
Container child = engine.findChild(name); engine.removeChild(child); if ( child instanceof ContainerBase ) ((ContainerBase)child).destroy(); } catch (Exception e) { writer.println(smClient.getString("hostManagerServlet.exception",