17.6.5. Configure Dead Letter Addresses
A dead letter address is defined in the
<address-setting> element of the Java Messaging Service (JMS) subsystem configuration.
<!-- undelivered messages in exampleQueue will be sent to the dead letter address deadLetterQueue after 3 unsuccessful delivery attempts --> <address-setting match="jms.queue.exampleQueue"> <dead-letter-address>jms.queue.deadLetterQueue</dead-letter-address> <max-delivery-attempts>3</max-delivery-attempts> </address-setting>
<dead-letter-address>is not specified, messages are removed after trying to deliver
<max-delivery-attempts>times. By default, messages delivery is attempted 10 times. Setting
-1allows infinite redelivery attempts. For example, a dead letter can be set globally for a set of matching addresses and you can set
-1for a specific address setting to allow infinite redelivery attempts only for this address. Address wildcards can also be used to configure dead letter settings for a set of addresses.