Package org.apache.cxf.jca.inbound
Class DispatchMDBMessageListenerImpl
java.lang.Object
org.apache.cxf.jca.inbound.DispatchMDBMessageListenerImpl
- All Implemented Interfaces:
jakarta.ejb.EnterpriseBean,jakarta.ejb.MessageDrivenBean,Serializable,DispatchMDBMessageListener
public class DispatchMDBMessageListenerImpl
extends Object
implements jakarta.ejb.MessageDrivenBean, DispatchMDBMessageListener
DispatchMDBMessageListenerImpl supports dispatching of calls to a
Stateless Session Bean.
DispatchMDBMessageListenerImpl is intended to be used as the <ejb-class> of
the <message-driven> bean in the resource adaptor's deployment descriptor
(ra.xml). When it is used, the <messaging-type> should be set to
org.apache.cxf.jca.inbound.DispatchMDBMessageListener. Also, the resource
adaptor's deployment descriptor should specify the same interface
(org.apache.cxf.jca.inbound.DispatchMDBMessageListener) in the
<messagelistener-type> in order to activate the inbound facade endpoint.
Since the Message Driven Bean is used to activate the inbound
endpoint facade by CXF JCA connector, all the required resources (such as,
service endpoint interface class, WSDL, or bus configuration) should be put
in the same jar with the Message Driven Bean.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidlookupTargetObject(String targetJndiName) Looks up the target object by EJB local reference.voidsetMessageDrivenContext(jakarta.ejb.MessageDrivenContext mdc)
-
Constructor Details
-
DispatchMDBMessageListenerImpl
public DispatchMDBMessageListenerImpl()
-
-
Method Details
-
lookupTargetObject
Looks up the target object by EJB local reference.- Specified by:
lookupTargetObjectin interfaceDispatchMDBMessageListener- Returns:
- Throws:
Exception
-
ejbCreate
public void ejbCreate() -
ejbRemove
public void ejbRemove()- Specified by:
ejbRemovein interfacejakarta.ejb.MessageDrivenBean
-
setMessageDrivenContext
public void setMessageDrivenContext(jakarta.ejb.MessageDrivenContext mdc) - Specified by:
setMessageDrivenContextin interfacejakarta.ejb.MessageDrivenBean
-