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 Details

    • DispatchMDBMessageListenerImpl

      public DispatchMDBMessageListenerImpl()
  • Method Details

    • lookupTargetObject

      public Object lookupTargetObject(String targetJndiName) throws Exception
      Looks up the target object by EJB local reference.
      Specified by:
      lookupTargetObject in interface DispatchMDBMessageListener
      Returns:
      Throws:
      Exception
    • ejbCreate

      public void ejbCreate()
    • ejbRemove

      public void ejbRemove()
      Specified by:
      ejbRemove in interface jakarta.ejb.MessageDrivenBean
    • setMessageDrivenContext

      public void setMessageDrivenContext(jakarta.ejb.MessageDrivenContext mdc)
      Specified by:
      setMessageDrivenContext in interface jakarta.ejb.MessageDrivenBean