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
- In your installation folder, locate the file called ejb-jar.xml under
the file path applications/maximo/mboejb/ejbmodule/META-INF.
- Open the file in a text editor and make the following changes:
- 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>
-->
- 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>
-->
- Save the changes that you made to the file.
- Locate the file called weblogic-ejb-jar-bnd.xmi under
the file path applications/maximo/mboejb/ejbmodule/META-INF.
- 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>
-->
- Remove the comment lines (<!– and –>).
- In the section where you removed the comment lines,
change the value of the <connection-factory-jndi-name> tab
to jms/mro/lsnr/lsnrcf.
- Save the changes that you made to the file.
- 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.