【问题标题】:Is there a way to set the maximum number of message redeliveries in ActiveMQ when using the Apache.NMS libraries?使用 Apache.NMS 库时,有没有办法在 ActiveMQ 中设置最大消息重新传递次数?
【发布时间】:2010-11-27 21:08:53
【问题描述】:

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

【问题讨论】:

    标签: .net activemq nms


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-11
      • 1970-01-01
      • 2011-01-12
      • 1970-01-01
      • 1970-01-01
      • 2015-08-29
      相关资源
      最近更新 更多