【发布时间】:2022-12-15 02:25:49
【问题描述】:
我的 activemq 代理中有一个配置,不将消息转发到.DLQ队列。
<destinationPolicy>
<policyMap>
<policyEntries>
<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>
当我试图查看存储在.DLQ我可以看到一些额外的属性显示以下原因
dlqDeliveryFailureCause java.lang.Throwable: duplicate from store for queue://xxxxxx
有什么办法可以丢弃重复的消息不发送到.DLQ排队活动消息.
【问题讨论】:
-
您已将
activemq-artemis标记添加到您的问题中,但该问题似乎仅与 ActiveMQ“Classic”有关。您能否阐明 ActiveMQ Artemis 如何参与其中?