public void unregister(Endpoint endpoint, Map<String, ?> properties) { ServiceRegistration reg = registrations.remove(endpoint); if (reg == null && endpoint instanceof InternalEndpoint) { reg = registrations.remove(((InternalEndpoint) endpoint).getEndpoint()); } if (reg != null) { reg.unregister(); } else { logger.warn("Unregistration failed: the endpoint was not found in registry: " + endpoint + " (" + properties + ")"); registry.unregister(endpoint, properties); } }
public void deactivate() { nmr.getEndpointRegistry().unregister(this, properties); }
public void destroy() { try { dc.close(); } catch (MessagingException e) { logger.warn("Error when closing the delivery channel", e); } componentRegistry.getNmr().getEndpointRegistry().unregister(componentEndpoint, properties); }
public synchronized void deactivateEndpoint(ServiceEndpoint endpoint) throws JBIException { List<Endpoint> eps = doQueryEndpoints(ServiceHelper.createMap(Endpoint.SERVICE_NAME, endpoint.getServiceName().toString(), Endpoint.ENDPOINT_NAME, endpoint.getEndpointName()), false); if (eps != null && eps.size() == 1) { Endpoint ep = eps.get(0); componentRegistry.getNmr().getEndpointRegistry().unregister(ep, null); } }
public void deregisterExternalEndpoint(ServiceEndpoint externalEndpoint) throws JBIException { List<Endpoint> eps = doQueryEndpoints(ServiceHelper.createMap(Endpoint.SERVICE_NAME, externalEndpoint.getServiceName().toString(), Endpoint.ENDPOINT_NAME, externalEndpoint.getEndpointName()), true); if (eps != null && eps.size() == 1) { Endpoint ep = eps.get(0); componentRegistry.getNmr().getEndpointRegistry().unregister(ep, null); } }