You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (Jira)" <ji...@apache.org> on 2020/01/06 14:53:00 UTC

[jira] [Commented] (ARTEMIS-2587) ActiveMQ5-like dead letter strategy

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

Justin Bertram commented on ARTEMIS-2587:
-----------------------------------------

Artemis has an alternative way to achieve functionality essentially equivalent to the individualDeadLetterStrategy. As noted in [the documentation|http://activemq.apache.org/components/artemis/documentation/latest/undelivered-messages.html#dead-letter-properties], messages which are sent to a dead-letter address get two special properties:

* {{_AMQ_ORIG_ADDRESS}}: the *original address* of the dead letter message
* {{_AMQ_ORIG_QUEUE}}: the *original queue* of the dead letter message

A message consumer can create a selector using these properties to receive messages from the DLQ for a specific address or queue. 

This should suffice for most use-cases which used individualDeadLetterStrategy previously.

> ActiveMQ5-like dead letter strategy
> -----------------------------------
>
>                 Key: ARTEMIS-2587
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2587
>             Project: ActiveMQ Artemis
>          Issue Type: New Feature
>          Components: Broker
>            Reporter: Adil Arif
>            Priority: Major
>
> In ActiveMQ 5 there is an individualDeadLetterStrategy policy available for the [Dead Letter Strategy|http://activemq.apache.org/message-redelivery-and-dlq-handling.html]. 
>  
> +Example+
> <policyEntry queue=">">
>   <deadLetterStrategy>
>       <individualDeadLetterStrategy queuePrefix="DLQ." useQueueForQueueMessages="true"/>
>   </deadLetterStrategy>
> </policyEntry>
>  
> This feature allows organizations to implement standardized policies on a broker for ensuring each queue has its own equivalent dead letter queue in an easy to configure fashion.
> This feature has shown interest by others in the past on the [mailing list|http://activemq.2283324.n4.nabble.com/Artemis-DLQ-strategy-td4710234.html] as well as [Red Hat's Knowledgebase |https://access.redhat.com/solutions/3140741].



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