use of org.apache.cxf.jca.inbound.InboundEndpoint in project cxf by apache.
the class ResourceAdapterImpl method endpointDeactivation.
public void endpointDeactivation(MessageEndpointFactory mef, ActivationSpec as) {
if (!(as instanceof MDBActivationSpec)) {
LOG.fine("Ignored unknown activation spec " + as);
return;
}
MDBActivationSpec spec = (MDBActivationSpec) as;
LOG.info("CXF resource adapter is deactivating " + spec.getDisplayName());
InboundEndpoint endpoint = endpoints.remove(spec.getDisplayName());
if (endpoint != null) {
try {
endpoint.shutdown();
} catch (Exception e) {
LOG.log(Level.WARNING, "Failed to stop endpoint " + spec.getDisplayName(), e);
}
}
}
use of org.apache.cxf.jca.inbound.InboundEndpoint in project cxf by apache.
the class ResourceAdapterImpl method stop.
public void stop() {
LOG.fine("Resource Adapter is being stopped by appserver...");
if (!busCache.isEmpty()) {
for (Bus bus : busCache) {
bus.shutdown(true);
}
}
// shutdown all the inbound endpoints
for (Map.Entry<String, InboundEndpoint> entry : endpoints.entrySet()) {
try {
entry.getValue().shutdown();
} catch (Exception e) {
LOG.log(Level.WARNING, "Failed to stop endpoint " + entry.getKey(), e);
}
}
endpoints.clear();
}
Aggregations