user manual
Chapter 20: Message-Driven Beans and JMS 219
Error Recovery
■
ejb.mdb.unDeliverableQueue: looks up the JNDI name of the queue.
The XML example for unDeliverableQueueConnectionFactory and
unDeliverableQueue is shown here:
<ejb-jar>
<enterprise-beans>
<message-driven>
<ejb-name>MyMDB</ejb-name>
<message-driven-destination-name>serial://jms/q</message-
driven-destination-name>
<connection-factory-name>serial://jms/xaqcf</connection-
factory-name>
<pool>
<max-size>20</max-size>
<init-size>0</init-size>
</pool>
<resource-ref>
<res-ref-name>jms/QueueConnectionFactory</res-ref-name>
<jndi-name>serial://jms/xaqcf</jndi-name>
</resource-ref>
<property>
<prop-name>ejb.mdb.maxRedeliverAttemptCount</prop-name>
<prop-type>String</prop-type>
<prop-value>3</prop-value>
</property>
<property>
<prop-name>ejb.mdb.unDeliverableQueueConnectionFactory</
prop-name>
<prop-type>String</prop-type>
<prop-value>serial://jms/qcf</prop-value>
</property>
<property>
<prop-name>ejb.mdb.unDeliverableQueue</prop-name>
<prop-type>String</prop-type>
<prop-value>serial://jms/q2</prop-value>
</property>
<property>
<prop-name>ejb-designer-id</prop-name>
<prop-type>String</prop-type>
<prop-value>MyMDB</prop-value>
</property>
</message-driven>
</enterprise-beans>
<assembly-descriptor />
</ejb-jar>
You can set these properties with the DDEditor. From the Console, navigate
the tree on the left until you find the module containing your MDBs. Right-click
the module and select DDEditor. When the DDEditor appears, select the bean
node in the Navigation Pane to open the editor's panels for that bean. Select
the "Properties" tab from the Content pane, and Add properties.










