Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Apache.NMS 1.4。我需要能够以编程方式设置在将消息放入 DLQ(死信队列)之前可以传递的最大次数。有没有办法做到这一点?
将此添加到您的连接字符串 nms.RedeliveryPolicy.MaximumRedeliveries=5
示例:tcp://localhost:61616?nms.RedeliveryPolicy.MaximumRedeliveries=5