public void destroy() { try { configCtx.terminate(); } catch (AxisFault ignore) { } }
public void cleanup() throws AxisFault { if (configurationContextCreated) { configurationContext.terminate(); } }
public void destroy() { try { configCtx.terminate(); } catch (AxisFault ignore) {} }
/** * Stop the server, automatically terminates the listener manager as well. * * @throws AxisFault */ public void stop() throws AxisFault { if (configContext != null) { configContext.terminate(); } }
/** * Stop the server, automatically terminates the listener manager as well. * * @throws AxisFault */ public void stop() throws AxisFault { if (configContext != null) { configContext.terminate(); } }
public boolean destroy() { try { if (configurationContext != null) { configurationContext.cleanupContexts(); configurationContext.terminate(); } return true; } catch (AxisFault af) { if (log != null) { log.error("error destroying client configuration. " + af); } return false; } }
public synchronized void stop() { if (configCtxServiceRegistration != null) { configCtxServiceRegistration.unregister(); } if (transportServiceRegistration != null) { transportServiceRegistration.unregister(); } if (mngServiceRegistration != null) { mngServiceRegistration.unregister(); } bundleTracker.close(); if (configCtx != null) { log.debug("Terminating configuration context"); try { configCtx.terminate(); configCtx = null; } catch (AxisFault e) { String msg = "Error while ConfigurationContext is terminated"; log.error(msg, e); } } log.info("Axis2 environment has stopped"); }
public void stop() throws Exception { if (listenerManager != null) { listenerManager.stop(); listenerManager.destroy(); } //we need to call this method to clean the team fils we created. if (configctx != null) { configctx.terminate(); } }
public void stop() throws Exception { if (listenerManager != null) { listenerManager.stop(); listenerManager.destroy(); } //we need to call this method to clean the team fils we created. if (configCtx != null) { configCtx.terminate(); } }
public void stop() throws Exception { if (listenerManager != null) { listenerManager.stop(); listenerManager.destroy(); } //we need to call this method to clean the team fils we created. if (configctx != null) { configctx.terminate(); } }
/** * Closes this <CODE>SOAPConnection</CODE> object. * * @throws javax.xml.soap.SOAPException if there is a SOAP error, or this SOAPConnection is * already closed */ public void close() throws SOAPException { if (closed) { throw new SOAPException("SOAPConnection Closed"); } try { configurationContext.terminate(); } catch (AxisFault axisFault) { throw new SOAPException(axisFault.getMessage()); } closed = true; }
/** * Closes this <CODE>SOAPConnection</CODE> object. * * @throws javax.xml.soap.SOAPException if there is a SOAP error, or this SOAPConnection is * already closed */ public void close() throws SOAPException { if (closed) { throw new SOAPException("SOAPConnection Closed"); } try { configurationContext.terminate(); } catch (AxisFault axisFault) { throw new SOAPException(axisFault.getMessage()); } closed = true; }
@TearDown @SuppressWarnings("unused") private void tearDown() throws Exception { sender.stop(); if (listenerManager != null) { listenerManager.stop(); listenerManager.destroy(); } cfgCtx.terminate(); }
@TearDown @SuppressWarnings("unused") private void tearDown() throws Exception { sender.stop(); if (listenerManager != null) { listenerManager.stop(); listenerManager.destroy(); } cfgCtx.terminate(); }
@TearDown @SuppressWarnings("unused") private void tearDown() throws Exception { sender.stop(); if (listenerManager != null) { listenerManager.stop(); listenerManager.destroy(); } cfgCtx.terminate(); }
/** * distroy the ConfigurationContext */ @Override public void destroy() { //stoping listner manager try { if (configContext != null) { configContext.terminate(); } } catch (AxisFault axisFault) { log.info(axisFault.getMessage()); } try { super.destroy(); } catch (Exception e) { log.info(e.getMessage()); } // AXIS2-4898: MultiThreadedHttpConnectionManager starts a thread that is not stopped by the // shutdown of the connection manager. If we want to avoid a resource leak, we need to call // shutdownAll here. // TODO - This action need be changed according to current HTTPClient. String clientVersion = getHTTPClientVersion(); if (clientVersion != null && HTTPTransportConstants.HTTP_CLIENT_4_X_VERSION.equals(clientVersion)) { // TODO - Handle for HTTPClient 4 } else { MultiThreadedHttpConnectionManager.shutdownAll(); } }
/** * {@inheritDoc} */ public void destroy() { try { // only if we have created the server if (serverConfigurationInformation.isCreateNewInstance()) { // destroy listener manager if (listenerManager != null) { listenerManager.destroy(); } stopJmxAdapter(); RMIRegistryController.getInstance().shutDown(); // we need to call this method to clean the temp files we created. if (configurationContext != null) { configurationContext.terminate(); } } initialized = false; } catch (Exception e) { log.error("Error stopping the Axis2 Based Server Environment", e); } }
/** * {@inheritDoc} */ public void destroy() { try { // only if we have created the server if (serverConfigurationInformation.isCreateNewInstance()) { // destroy listener manager if (listenerManager != null) { listenerManager.destroy(); } stopJmxAdapter(); RMIRegistryController.getInstance().shutDown(); if (snmpAgent != null) { snmpAgent.stop(); } // we need to call this method to clean the temp files we created. if (configurationContext != null) { configurationContext.terminate(); } } initialized = false; } catch (Exception e) { log.error("Error stopping the Axis2 Based Server Environment", e); } }
/** * Clean up configuration created with this client. Call this method when you're done using the * client, in order to discard any associated resources. * * @throws AxisFault in case of error */ public void cleanup() throws AxisFault { // if a configuration context was created for this client there'll also // be a service group, so discard that if (!createConfigCtx) { String serviceGroupName = axisService.getAxisServiceGroup().getServiceGroupName(); AxisConfiguration axisConfiguration = configContext.getAxisConfiguration(); AxisServiceGroup asg = axisConfiguration.getServiceGroup(serviceGroupName); if ((asg != null) && removeAxisService) { axisConfiguration.removeServiceGroup(serviceGroupName); } } else { configContext.terminate(); } }
/** * Clean up configuration created with this client. Call this method when you're done using the * client, in order to discard any associated resources. * * @throws AxisFault in case of error */ public void cleanup() throws AxisFault { // if a configuration context was created for this client there'll also // be a service group, so discard that if (!createConfigCtx) { String serviceGroupName = axisService.getAxisServiceGroup().getServiceGroupName(); AxisConfiguration axisConfiguration = configContext.getAxisConfiguration(); AxisServiceGroup asg = axisConfiguration.getServiceGroup(serviceGroupName); if ((asg != null) && removeAxisService) { axisConfiguration.removeServiceGroup(serviceGroupName); } } else { configContext.terminate(); } }