Hi
My messages in the topic are persistent messages. And the message will not 
enter the dead letter queue.
Another things??When the messages in queue enter DLQ. From the console, I can 
only view the contents of 400 messages in the dead letter queue, although the 
actual number of messages is greater than 400




------------------ ???????? ------------------
??????:                                                                         
                                               "users"                          
                                                          
<j...@nanthrax.net&gt;;
????????:&nbsp;2021??6??8??(??????) ????4:36
??????:&nbsp;"users"<users@activemq.apache.org&gt;;

????:&nbsp;Re: I want to know something about dead letter queue with ActiveMQ 
5.15.9



Hi,

Maybe your messages in the topic (if I understand correctly) are non persistent 
messages.

By default, the non persistent messages are not store in the DLQ: only 
persistent messages go into the DLQ.

If you want to consider non persistent messages for DLQ, you have to enable it 
with something like (at destination policy level):

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <deadLetterStrategy&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<sharedDeadLetterStrategy processNonPersistent="true" /&gt;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </deadLetterStrategy&gt;

Regards
JB

&gt; Le 8 juin 2021 ?? 08:36, ??????o.-- <1169114...@qq.com&gt; a ??crit :
&gt; 
&gt; Hi??
&gt; When I set the expiration time for the message sent to the queue, when the 
expiration time is up, the message will be stored in the dead letter queue 
??ActiveMQ.DLQ??
&gt; 
&gt; 
&gt; With the same policy setting, the message will not enter the dead letter 
queue.
&gt; 
&gt; 
&gt; Does ActiveMQ itself not support storing expired topic messages into dead 
letter queues? Dead letter queue is only for queue?

Reply via email to