use of org.apache.cxf.jca.inbound.MDBActivationSpec 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.MDBActivationSpec in project cxf by apache.
the class ResourceAdapterImpl method endpointActivation.
public void endpointActivation(MessageEndpointFactory mef, ActivationSpec as) throws ResourceException {
if (!(as instanceof MDBActivationSpec)) {
LOG.fine("Ignored unknown activation spec " + as);
return;
}
MDBActivationSpec spec = (MDBActivationSpec) as;
LOG.info("CXF resource adapter is activating " + spec.getDisplayName());
Work work = new MDBActivationWork(spec, mef, endpoints);
ctx.getWorkManager().scheduleWork(work);
}
Aggregations