WildFly HornetQ Message Redelivery on Failure and the Dead Letter Queue: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 10: Line 10:
=Configuration=
=Configuration=


Redelivery behavior (maximum redelivery attempts before the message is sent to the Dead Letter Queue, redelivery delay and the Dead Letter Queue itself) is configurable on a per-address basis.
Redelivery behavior, which consists of maximum redelivery attempts before the message is sent to the Dead Letter Queue, redelivery delay and the address of the Dead Letter Queue itself, is configurable on a per-address basis.


<pre>
<pre>

Revision as of 17:53, 25 April 2017

Internal

Overview

If HornetQ fails to deliver a message, its default behavior is to retry delivery to the consumers of the destination for a set number of times. If all subsequent redelivery attempts fail, HornetQ will send the message to a configurable dead letter queue.

Configuration

Redelivery behavior, which consists of maximum redelivery attempts before the message is sent to the Dead Letter Queue, redelivery delay and the address of the Dead Letter Queue itself, is configurable on a per-address basis.

...
<address-settings>
    <address-setting match="#">
        <dead-letter-address>jms.queue.DLQ</dead-letter-address>
        <redelivery-delay>0</redelivery-delay>
        <max-delivery-attempts>10</max-delivery-attempts>
        ...
    </address-setting>
</address-settings>
...

The default redelivery attempt count is 10.