Configuring the expiry time for the messages destined to the "Expired message address" in Hornetq
- by Rohit
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?