JMS Examples: Dead Letter (limiting message delivery attempts)

WARNING - TOPIC NOT WRITTEN - TOPIC ID: 159

This topic has not yet been written. The content below is from the topic description.
11.1.11. Dead Letter The dead-letter example shows you how to define and deal with dead letter messages. Messages can be delivered unsuccessfully (e.g. if the transacted session used to consume them is rolled back). Such a message goes back to the JMS destination ready to be redelivered. However, this means it is possible for a message to be delivered again and again without any success and remain in the destination, clogging the system. To prevent this, messaging systems define dead letter messages: after a specified unsuccessful delivery attempts, the message is removed from the destination and put instead in a dead letter destination where they can be consumed for further investigation.