webSphere 下消息驱动Bean 与队列JNDI的关联

1. 消息驱动Bean配置ejb-jar.xml

    <message-driven id="MessageDriven_1172729596359">

      <ejb-name>SOReceiveMDBBean</ejb-name>

      <ejb-class>com.telecom.inf.eai.jms.ejb.SOReceiveMDBBean</ejb-class>

      <transaction-type>Container</transaction-type>

      <message-driven-destination>

        <destination-type>javax.jms.Queue</destination-type>

      </message-driven-destination>

    </message-driven>

2. 建立消息驱动Bean和队列JNDI的关系 ibm-ejb-jar-bnd.xmi

  <ejbBindings xmi:type="com.ibm.ejs.models.base.bindings.ejbbnd:MessageDrivenBeanBinding" xmi:id="MessageDriven_BND_1172729584183" activationSpecJndiName="/jms/EAIIOM">

    <enterpriseBean xmi:type="com.ibm.etools.ejb:MessageDriven" href="META-INF/ejb-jar.xml#MessageDriven_1172729596359"/>

  </ejbBindings>

 

你可能感兴趣的:(bean,jms,IBM,ejb,websphere)