You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Sophia Wright <so...@gmail.com> on 2013/11/08 15:41:46 UTC

Message send to DLQ

Hey,

Please correct me if I am wrong...

When a  message is expired, it is sent to the DLQ by default. And before
sending it to DLQ, it's expiration time is set to '0' which means message
never expires and also it is converted to a persistence message, even if it
is non persistence.


Thank You,
Sophia 



--
View this message in context: http://activemq.2283324.n4.nabble.com/Message-send-to-DLQ-tp4674079.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

RE: Message send to DLQ

Posted by ba...@wellsfargo.com.
Use the dead letter strategy to clear these expiry messages:

<broker...>
<destinationPolicy>
<policyMap>
<policyEntries>
<!-- Set the following policy on all queues using the '>' wildcard -->
<policyEntry queue=">">
<!--
Tell the dead letter strategy not to process expired messages
so that they will just be discarded instead of being sent to
the DLQ
-->
<deadLetterStrategy>
<sharedDeadLetterStrategy processExpired="false" />
</deadLetterStrategy>
</policyEntry>
</policyEntries>
</policyMap>
</destinationPolicy>

Regards,

Barry Barnett
WMQ Enterprise Services & Solutions
Wells Fargo
Cell: 704-564-5501

-----Original Message-----
From: Torsten Mielke [mailto:tmielke@redhat.com] 
Sent: Tuesday, November 12, 2013 11:06 AM
To: users@activemq.apache.org
Subject: Re: Message send to DLQ


On Nov 8, 2013, at 15:41 PM, Sophia Wright wrote:

> Hey,
> 
> Please correct me if I am wrong...
> 
> When a  message is expired, it is sent to the DLQ by default. And 
> before sending it to DLQ, it's expiration time is set to '0' which 
> means message never expires and also it is converted to a persistence 
> message, even if it is non persistence.

Not entirely sure but would have thought non-persistent expired messages are simply deleted by the broker and not moved to DLQ?
The rest of your claim is correct. 


Regards,

Torsten Mielke
tmielke@redhat.com
tmielke.blogspot.com




Re: Message send to DLQ

Posted by Torsten Mielke <tm...@redhat.com>.
On Nov 8, 2013, at 15:41 PM, Sophia Wright wrote:

> Hey,
> 
> Please correct me if I am wrong...
> 
> When a  message is expired, it is sent to the DLQ by default. And before
> sending it to DLQ, it's expiration time is set to '0' which means message
> never expires and also it is converted to a persistence message, even if it
> is non persistence.

Not entirely sure but would have thought non-persistent expired messages are simply deleted by the broker and not moved to DLQ?
The rest of your claim is correct. 


Regards,

Torsten Mielke
tmielke@redhat.com
tmielke.blogspot.com