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:tmie...@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 tmie...@redhat.com tmielke.blogspot.com