Apache CXF API

org.apache.cxf.jca.inbound
Class MDBInvoker

java.lang.Object
  extended by org.apache.cxf.service.invoker.AbstractInvoker
      extended by org.apache.cxf.jca.inbound.MDBInvoker
All Implemented Interfaces:
Invoker
Direct Known Subclasses:
DispatchMDBInvoker

public class MDBInvoker
extends AbstractInvoker

An invoker that supports direct Message Driven Bean invocation. It get invoked in the context of the Message Driven Bean that activates the CXF service endpoint facade. Applications that put service implementation inside the Message Driven Bean that activates the inbound endpoint facade should choose this invoker. It is more straightforward and faster than DispatchMBDInvoker but it requires to modify resource adapter's deployment descriptor (ra.xml) as the needs to be set to the Service Endpoint Interface (SEI) class.


Constructor Summary
MDBInvoker(javax.resource.spi.endpoint.MessageEndpointFactory factory)
           
 
Method Summary
 javax.resource.spi.endpoint.MessageEndpoint getMessageEndpoint()
           
 Object getServiceObject(Exchange context)
          Creates and returns a service object depending on the scope.
protected  void releaseEndpoint(javax.resource.spi.endpoint.MessageEndpoint mep)
           
 void releaseServiceObject(Exchange context, Object obj)
          Called when the invoker is done with the object.
 
Methods inherited from class org.apache.cxf.service.invoker.AbstractInvoker
adjustMethodAndParams, checkSuspendedInvocation, createFault, getMostSpecificMethod, insertExchange, invoke, invoke, isJdkDynamicProxy, performInvocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MDBInvoker

public MDBInvoker(javax.resource.spi.endpoint.MessageEndpointFactory factory)
Parameters:
messageEndpoint -
Method Detail

getMessageEndpoint

public javax.resource.spi.endpoint.MessageEndpoint getMessageEndpoint()
Returns:
the messageEndpoint

releaseEndpoint

protected void releaseEndpoint(javax.resource.spi.endpoint.MessageEndpoint mep)

getServiceObject

public Object getServiceObject(Exchange context)
Description copied from class: AbstractInvoker
Creates and returns a service object depending on the scope.

Specified by:
getServiceObject in class AbstractInvoker

releaseServiceObject

public void releaseServiceObject(Exchange context,
                                 Object obj)
Description copied from class: AbstractInvoker
Called when the invoker is done with the object. Default implementation does nothing.

Overrides:
releaseServiceObject in class AbstractInvoker

Apache CXF API

Apache CXF