Weblogic Server - IBM BJ0NJML - Service And Asset Management Integration Manual

Integration guide
Table of Contents

Advertisement

Continuous Queue

WebLogic Server

170
To enable the message-driven beans on the error queue, uncomment the
values shown in bold in the ejb-jar.xml file and set the MDBDELAY value.
<!-- MEA MDB for error queue
<message-driven id="MessageDriven_JMSContQueueProcessor_2">
<ejb-name>JMSContQueueProcessor-2</ejb-name>
<ejb-class>psdi.iface.jms.JMSContQueueProcessor</ejb-class>
<transaction-type>Container</transaction-type>
<message-destination-type>javax.jms.Queue</message-
destination-type>
<env-entry>
<env-entry-name>MESSAGEPROCESSOR</env-entry-name>
<env-entry-type>java.lang.String </env-entry-type>
<env-entry-
value>psdi.iface.jms.QueueToMaximoProcessor</env-
entry-value>
</env-entry>
<env-entry>
<env-entry-name>MDBDELAY</env-entry-name>
<env-entry-type>java.lang.Long </env-entry-type>
<env-entry-value>30000</env-entry-value>
</env-entry>
</message-driven>
-->
<!-- MEA MDB for error queue
<container-transaction>
<method>
<ejb-name>JMSContQueueProcessor-2</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
-->
You also need to uncomment the following code in the ibm-ejb-jar-bnd.xmi to
enable the message-driven beans on the error queue.
<!-- MEA MDB for error queue
<ejbBindings xmi:type="ejbbnd:MessageDrivenBeanBinding"
xmi:id="MessageDrivenBeanBinding_1"
activationSpecJndiName="intjmsacterr">
<enterpriseBean xmi:type="ejb:MessageDriven" href="META-INF/
ejb-jar.xml#MessageDriven_JMSContQueueProcessor_2"/>
</ejbBindings>
-->
The WebLogic Server queue has a redelivery delay property that can control how
messages in error are reprocessed. The redelivery delay property represents the
time between when the message reports an error and when the message is
reprocessed. You cannot view the message in the queue for the amount of time
you specified in the redelivery delay property.
The redelivery delay improves system performance. Messages other than
messages in error can be processed for the amount of time that is defined in the
redelivery delay property. The processing delay applies to the message and not to
the thread that processes the message.
Integration Guide

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents