You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by "ヤ艾枫o.--" <11...@qq.com> on 2021/06/09 01:38:16 UTC
回复: I want to know something about dead letter queue with ActiveMQ 5.15.9
Hi
My messages in the topic are non 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" <jb@nanthrax.net>;
发送时间: 2021年6月8日(星期二) 下午4:36
收件人: "users"<users@activemq.apache.org>;
主题: 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):
<deadLetterStrategy>
<sharedDeadLetterStrategy processNonPersistent="true" />
</deadLetterStrategy>
Regards
JB
> Le 8 juin 2021 à 08:36, ヤ艾枫o.-- <1169114186@qq.com> a écrit :
>
> Hi:
> 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)
>
>
> With the same policy setting, the message will not enter the dead letter queue.
>
>
> Does ActiveMQ itself not support storing expired topic messages into dead letter queues? Dead letter queue is only for queue?