org.apache.cxf.jca.inbound
Class DispatchMDBInvoker

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

public class DispatchMDBInvoker
extends MDBInvoker

DispatchMDBInvoker is executed in the context of a Message Driven Bean that dispatches calls to the target Session Bean where the service logic is implemented. The target must be a Stateless Session Bean. Since DispatchMDBInvoker makes EJB local invocation to the target bean, the Message Driven Bean must be configured to include a local reference to the target bean in the deployment descriptor. The advantage of using DispatchMDBInvoker is that no modification to the resource adapter's deployment descriptor (ra.xml) is required to add or remove inbound endpoints.


Constructor Summary
DispatchMDBInvoker(javax.resource.spi.endpoint.MessageEndpointFactory factory, String targetJndiName)
           
 
Method Summary
 Object getServiceObject(org.apache.cxf.message.Exchange context)
           
 void releaseServiceObject(org.apache.cxf.message.Exchange context, Object obj)
           
 
Methods inherited from class org.apache.cxf.jca.inbound.MDBInvoker
getMessageEndpoint, releaseEndpoint
 
Methods inherited from class org.apache.cxf.service.invoker.AbstractInvoker
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

DispatchMDBInvoker

public DispatchMDBInvoker(javax.resource.spi.endpoint.MessageEndpointFactory factory,
                          String targetJndiName)
Parameters:
messageEndpoint -
Method Detail

getServiceObject

public Object getServiceObject(org.apache.cxf.message.Exchange context)
Overrides:
getServiceObject in class MDBInvoker

releaseServiceObject

public void releaseServiceObject(org.apache.cxf.message.Exchange context,
                                 Object obj)
Overrides:
releaseServiceObject in class MDBInvoker


Apache CXF