public void stopServer(Server server) { String uri = "local://" + server.toString(); EndpointInfo ei = new EndpointInfo(); ei.setAddress(uri); try { Destination destination = getDestinationFactory().getDestination(ei, bus); destination.shutdown(); } catch (IOException e) { LOG.log(Level.WARNING, "Could not shutdown local destination.", e); } }
public void destroy() { stop(); // we should shutdown the destination here getDestination().shutdown(); if (null != serverRegistry) { LOG.fine("unregister the server to serverRegistry "); serverRegistry.unregister(this); } if (iMgr != null) { try { iMgr.unregister(mep); } catch (JMException jmex) { LOG.log(Level.WARNING, "Unregistering ManagedEndpoint failed.", jmex); } iMgr = null; } }
public void destroy() { stop(); // we should shutdown the destination here getDestination().shutdown(); if (null != serverRegistry) { LOG.fine("unregister the server to serverRegistry "); serverRegistry.unregister(this); } if (iMgr != null) { try { iMgr.unregister(mep); } catch (JMException jmex) { LOG.log(Level.WARNING, "Unregistering ManagedEndpoint failed.", jmex); } iMgr = null; } }
public void destroy() { stop(); // we should shutdown the destination here getDestination().shutdown(); if (null != serverRegistry) { LOG.fine("unregister the server to serverRegistry "); serverRegistry.unregister(this); } if (iMgr != null) { try { iMgr.unregister(mep); } catch (JMException jmex) { LOG.log(Level.WARNING, "Unregistering ManagedEndpoint failed.", jmex); } iMgr = null; } }
public void destroy() { stop(); // we should shutdown the destination here getDestination().shutdown(); if (null != serverRegistry) { LOG.fine("unregister the server to serverRegistry "); serverRegistry.unregister(this); } if (iMgr != null) { try { iMgr.unregister(mep); } catch (JMException jmex) { LOG.log(Level.WARNING, "Unregistering ManagedEndpoint failed.", jmex); } iMgr = null; } }
public void clientDestroyed(Client client) { Destination dest = client.getEndpoint().getEndpointInfo() .getProperty(DECOUPLED_DESTINATION, Destination.class); if (dest != null) { dest.setMessageObserver(null); dest.shutdown(); } }
public void clientDestroyed(Client client) { Destination dest = client.getEndpoint().getEndpointInfo() .getProperty(DECOUPLED_DESTINATION, Destination.class); if (dest != null) { dest.setMessageObserver(null); dest.shutdown(); } }