开发者

Is there a way to set the maximum number of message redeliveries in ActiveMQ when using the Apache.NMS libraries?

开发者 https://www.devze.com 2023-01-20 19:28 出处:网络
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 ther

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?


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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消