public void destroy() throws LifecycleException { if( started ) stop(); // unregister should be here probably // START CR 6368091 if (initialized) { initialized = false; } // END CR 6368091 }
public void destroy() throws LifecycleException { if( started ) stop(); // FIXME unregister should be here probably -- stop doing that ? }
public void destroy() throws LifecycleException { if( started ) stop(); // FIXME unregister should be here probably -- stop doing that ? removeLifecycleListener(mapperListener); }
public void destroy() throws LifecycleException { if( started ) stop(); // FIXME unregister should be here probably -- stop doing that ? removeLifecycleListener(mapperListener); }
@Override public void stop() throws LifecycleException { super.stop(); // Tomcat specific unloading case // Issue 1411 http://code.google.com/p/mobicents/issues/detail?id=1411 // Sip Connectors should be removed after removing all Sip Servlets to allow them to send BYE to terminate cleanly synchronized (connectors) { for (Connector connector : connectors) { MobicentsExtendedListeningPoint extendedListeningPoint = (MobicentsExtendedListeningPoint) connector.getProtocolHandler().getAttribute(MobicentsExtendedListeningPoint.class.getSimpleName()); if(extendedListeningPoint != null) { extendedListeningPoint.getSipProvider().removeSipListener(sipApplicationDispatcher); sipApplicationDispatcher.getSipNetworkInterfaceManager().removeExtendedListeningPoint(extendedListeningPoint); } } } if(!connectorsStartedExternally) { sipApplicationDispatcher.stop(); } if(logger.isInfoEnabled()) { logger.info("SIP Standard Service Stopped."); } }
@Override public void stop() throws LifecycleException { // Tomcat specific unloading case // Issue 1411 http://code.google.com/p/mobicents/issues/detail?id=1411 // Sip Connectors should be removed after removing all Sip Servlets to allow them to send BYE to terminate cleanly synchronized (connectors) { for (Connector connector : connectors) { MobicentsExtendedListeningPoint extendedListeningPoint = null; if (connector.getProtocolHandler() instanceof SipProtocolHandler) { extendedListeningPoint = (MobicentsExtendedListeningPoint) ((SipProtocolHandler)connector.getProtocolHandler()).getAttribute(ExtendedListeningPoint.class.getSimpleName()); } if(extendedListeningPoint != null) { extendedListeningPoint.getSipProvider().removeSipListener(sipApplicationDispatcher); sipApplicationDispatcher.getSipNetworkInterfaceManager().removeExtendedListeningPoint(extendedListeningPoint); } } } if(!connectorsStartedExternally) { sipApplicationDispatcher.stop(); } super.stop(); if(logger.isDebugEnabled()) { logger.debug("SIP Standard Service Stopped."); } // setState(LifecycleState.STOPPING); }
service.stop(); } catch (LifecycleException e) { log.error("service already stopped ", e);