Tim,

See 
https://activemq.apache.org/message-redelivery-and-dlq-handling#setting-expiration-on-messages-in-the-dlq

Erwin

-----Oorspronkelijk bericht-----
Van: Tim Bain <tb...@alumni.duke.edu> 
Verzonden: donderdag 10 juni 2021 13:55
Aan: ActiveMQ Users <users@activemq.apache.org>
Onderwerp: Re: I want to know something about dead letter queue with ActiveMQ 
5.15.9


EXTERNAL SENDER:   Do not click any links or open any attachments unless you 
trust the sender and know the content is safe.
EXPÉDITEUR EXTERNE:    Ne cliquez sur aucun lien et n’ouvrez aucune pièce 
jointe à moins qu’ils ne proviennent d’un expéditeur fiable, ou que vous ayez 
l'assurance que le contenu provient d'une source sûre.

If, after the messages expire, you connect a real consumer to the topic, does 
it receive those messages or does the broker expire them at that point?

How are you setting the expiration time on these messages?

For the web console, are you saying that this particular topic's enqueue counts 
(on the Topics tab of the web console) aren't increasing when you publish these 
messages?

Tim

On Tue, Jun 8, 2021, 8:38 PM ヤ艾枫o.-- <1169114...@qq.com> wrote:

> 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
>
>
>
>
> ------------------&nbsp;原始邮件&nbsp;------------------
> 发件人:
>                                                   "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