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

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 6: Line 6:
=Overview=
=Overview=


If HornetQ fails to deliver a message, it's default behavior is to retry delivery to the consumers of the destination for a set number of times. If the redelivery fails for all configured redelivery attempts, HornetQ will send the message to a configurable dead letter queue.
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 the redelivery fails for all configured redelivery attempts, HornetQ will send the message to a configurable dead letter queue.


=Configuration=
=Configuration=

Revision as of 17:48, 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 the redelivery fails for all configured redelivery attempts, HornetQ will send the message to a configurable dead letter queue.

Configuration

Redelivery behavior (redelivery count, redelivery delay and the dead letter queue) is configurable on a per-address basis.

<address-settings>
                    <address-setting match="#">
                        <dead-letter-address>jms.queue.DLQ</dead-letter-address>
                        <expiry-address>jms.queue.ExpiryQueue</expiry-address>
                        <redelivery-delay>0</redelivery-delay>
                        <max-size-bytes>10485760</max-size-bytes>
                        <page-size-bytes>2097152</page-size-bytes>
                        <address-full-policy>PAGE</address-full-policy>
                        <message-counter-history-day-limit>10</message-counter-history-day-limit>
                    </address-setting>
                </address-settings>