Configuring the expiry time for the messages destined to the "Expired message address" in Hornetq
Posted
by
Rohit
on Stack Overflow
See other posts from Stack Overflow
or by Rohit
Published on 2014-06-06T09:22:33Z
Indexed on
2014/06/06
9:24 UTC
Read the original article
Hit count: 289
hornetq
I have configured a message expiry destination in Hornetq as below
<address-setting match="#">
<dead-letter-address>jms.queue.error</dead-letter-address>
<expiry-address>jms.queue.error</expiry-address>
<max-delivery-attempts>3</max-delivery-attempts>
<redelivery-delay>2000</redelivery-delay>
<max-size-bytes>10485760</max-size-bytes>
<message-counter-history-day-limit>10</message-counter-history-day-limit>
<address-full-policy>BLOCK</address-full-policy>
<redistribution-delay>60000</redistribution-delay>
</address-setting>
And the messages do get redirected to the expiry address once the expiration time is exceeded. These messages live indefinitely on the expiry address, Is there a way to provide a expiry time for these messages so they live only limited time on the expiry address?
© Stack Overflow or respective owner