Package org.apache.cxf.jca.inbound
Class MDBInvoker
java.lang.Object
org.apache.cxf.service.invoker.AbstractInvoker
org.apache.cxf.jca.inbound.MDBInvoker
- All Implemented Interfaces:
Invoker
- Direct Known Subclasses:
DispatchMDBInvoker
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 <messaging-type> needs to be set to the Service Endpoint Interface
(SEI) class.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.resource.spi.endpoint.MessageEndpointgetServiceObject(Exchange context) Creates and returns a service object depending on the scope.protected voidreleaseEndpoint(jakarta.resource.spi.endpoint.MessageEndpoint mep) voidreleaseServiceObject(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
-
Constructor Details
-
MDBInvoker
public MDBInvoker(jakarta.resource.spi.endpoint.MessageEndpointFactory factory) - Parameters:
factory-
-
-
Method Details
-
getMessageEndpoint
public jakarta.resource.spi.endpoint.MessageEndpoint getMessageEndpoint()- Returns:
- the messageEndpoint
-
releaseEndpoint
protected void releaseEndpoint(jakarta.resource.spi.endpoint.MessageEndpoint mep) -
getServiceObject
Description copied from class:AbstractInvokerCreates and returns a service object depending on the scope.- Specified by:
getServiceObjectin classAbstractInvoker
-
releaseServiceObject
Description copied from class:AbstractInvokerCalled when the invoker is done with the object. Default implementation does nothing.- Overrides:
releaseServiceObjectin classAbstractInvoker
-