Search in sources :

Example 1 with MDBActivationWork

use of org.apache.cxf.jca.inbound.MDBActivationWork 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);
}
Also used : MDBActivationSpec(org.apache.cxf.jca.inbound.MDBActivationSpec) MDBActivationWork(org.apache.cxf.jca.inbound.MDBActivationWork) MDBActivationWork(org.apache.cxf.jca.inbound.MDBActivationWork) Work(javax.resource.spi.work.Work)

Aggregations

Work (javax.resource.spi.work.Work)1 MDBActivationSpec (org.apache.cxf.jca.inbound.MDBActivationSpec)1 MDBActivationWork (org.apache.cxf.jca.inbound.MDBActivationWork)1