[ 
https://issues.apache.org/jira/browse/ARTEMIS-1584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17013984#comment-17013984
 ] 

Justin Bertram edited comment on ARTEMIS-1584 at 1/13/20 3:26 AM:
------------------------------------------------------------------

You should be able to do this already using the {{<expiry-delay>}} 
{{<address-setting>}} as noted in [the 
documentation|http://activemq.apache.org/components/artemis/documentation/latest/message-expiry.html#configuring-expiry-delay].
 Expiry addresses and dead-letter addresses are just normal addresses so you 
can apply address-settings to them just like any other address. By using 
{{<expiry-delay>}} on the expiry address or dead-letter address you can enforce 
how long messages will stay there and if there is no expiry address configured 
then the message will be deleted. If there is an expiry address configured then 
the messages will be moved there.


was (Author: jbertram):
You should be able to do this already using the {{<expiry-delay>}} 
{{<address-setting>}} as noted in [the 
documentation|http://activemq.apache.org/components/artemis/documentation/latest/message-expiry.html#configuring-expiry-delay].
 Expiry address and dead-letter addresses are just normal addresses so you can 
apply address-settings to them like any other address. By using 
{{<expiry-delay>}} on the expiry address or dead-letter address you can enforce 
how long messages will stay there and if there is no expiry address configured 
then the message will be deleted. If there is an expiry address configured then 
the messages will be moved there.

> ActiveMQ5-like automatic purging/expiration of messages in DLQ/expiry queue 
> after predefined timespan
> -----------------------------------------------------------------------------------------------------
>
>                 Key: ARTEMIS-1584
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1584
>             Project: ActiveMQ Artemis
>          Issue Type: New Feature
>          Components: Broker
>            Reporter: Johan Stenberg
>            Priority: Major
>
> DeadLetter/Expiry addresses rely on clients to consume messages. If for some 
> reasons a client fails to do so, messages may get stuck in these queues 
> forever. It would be great to be able to specify an action that is 
> automatically performed after a message is put into an DLQ/expiry queue and 
> not consumed within a given time, e.g. moving to another expiry address or 
> discarding of the message.
> Something like 
> http://activemq.apache.org/message-redelivery-and-dlq-handling.html#MessageRedeliveryandDLQHandling-SettingExpirationonMessagesintheDLQ
>  but not limited to DLQs also for expiry addresses.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to