Configuring the Message Driven Bean in WebLogic Server

To enable an e-mail listener to use JMS queues, you must configure a Java™ component called a Message Driven Bean that ships with the system. The Message Driven Bean must be configured through a deployment descriptor file that is part of your installation. Configuring the Message Driven Bean involves removing comment lines from specific sections within the deployment descriptor files of the system.

Before you begin

To complete this task, you need access to the following files: ejbjar.xml in the file path applications/maximo/mboejb/ejbmodule/META-INF and weblogic-ejb-jar-bnd.xmi file in the file path applications/maximo/mboejb/ejbmodule/META-INF.

Procedure

  1. In your installation folder, locate the file called ejb-jar.xml under the file path applications/maximo/mboejb/ejbmodule/META-INF.
  2. Open the file in a text editor and make the following changes:
    1. Locate the following section and remove the comment lines (<!– and –>):
      <!--Email Listener JMS is not deployed by default
      <message-driven id="MessageDriven_LSNRMessageBean">
      <ejb-name>LSNRMessageBean</ejb-name>
      <ejb-class>psdi.common.emailstner.LSNRMessageBean</ejb-class>
      <transaction-type>Container</transaction-type>
      <message-destination-type>javax.jms.Queue</message-destination-type>
      </message-driven>
      -->
    2. Locate the following section and remove the comment lines (<!– and –>):
      <!--Email Listener JMS is not deployed by default
      <container-transaction>
      <method>
      <ejb-name>LSNRMessageBean</ejb-name>
      <method-name>*</method-name>
      </method>
      <trans-attribute>Required</trans-attribute>
      </container-transaction>
      -->
  3. Save the changes that you made to the file.
  4. Locate the file called weblogic-ejb-jar-bnd.xmi under the file path applications/maximo/mboejb/ejbmodule/META-INF.
  5. Open the file in a text editor and locate the following section:
    <!--Email Listener JMS is not deployed by default
    <weblogic-enterprise-bean>
    <ejb-name>LSNRMessageBean</ejb-name>
    <message-driven-descriptor>
    <destination-jndi-name>jms/mro/lsnr/qin</destination-jndi-name>
    <connection-factory-jndi-name>jms/mro/lsnr/lsnrcf</connection-factory-jndi-name>
    </message-driven-descriptor>
    <transaction-descriptor>
    <trans-timeout-seconds>600</trans-timeout-seconds>
    </transaction-descriptor>
    <jndi-name>LSNRMessageBean</jndi-name>
    </weblogic-enterprise-bean>
    -->
    1. Remove the comment lines (<!– and –>).
    2. In the section where you removed the comment lines, change the value of the <connection-factory-jndi-name> tab to jms/mro/lsnr/lsnrcf.
    3. Save the changes that you made to the file.
  6. Rebuild and redeploy the Enterprise Application Archive (EAR) to complete the configuration.

What to do next

After you configure the MDB for e-mail listeners, you configure an e-mail listener to use a JMS queue.


Feedback