使用 Apache.NMS 库时,有没有办法设置 ActiveMQ 中消息重新传递的最大数量?

发布于 2024-09-28 18:56:14 字数 74 浏览 0 评论 0原文

我正在使用 Apache.NMS 1.4。我需要能够以编程方式设置消息在放入 DLQ(死信队列)之前可以传递的最大次数。有办法做到吗?

I'm using Apache.NMS 1.4. I need to be able to programmatically set the maximum number of times a message can be delivered before being placed in the DLQ (Dead Letter Queue). Is there a way to do it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

月亮邮递员 2024-10-05 18:56:14

将其添加到您的连接字符串 nms.RedeliveryPolicy.MaximumRedeliveries=5

示例:
tcp://localhost:61616?nms.RedeliveryPolicy.MaximumRedeliveries=5

add this to your connection string nms.RedeliveryPolicy.MaximumRedeliveries=5

Example:
tcp://localhost:61616?nms.RedeliveryPolicy.MaximumRedeliveries=5

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文