【问题标题】:Is it possible to get the delivery status of a specific message in ActiveMQ?是否可以在 ActiveMQ 中获取特定消息的传递状态?
【发布时间】:2018-06-27 21:39:36
【问题描述】:

我希望能够知道我发送的所有消息的状态。这在 ActiveMQ 中可能吗?如果是这样,我如何通过其 ID 获取已发送的消息并检查它是否已收到?

【问题讨论】:

    标签: java spring jms activemq spring-jms


    【解决方案1】:

    是的,您可以订阅咨询消息并将代理配置为在使用消息时发出和咨询:http://activemq.apache.org/advisory-message.html

    请参阅有关为 AdvisoryForConsumed="true" 配置目标策略的部分

    <destinationPolicy> <policyMap> <policyEntries> <policyEntry topic=">" advisoryForConsumed="true"/> <policyEntry queue=">" advisoryForConsumed="true"/> </policyEntries> </policyMap> </destinationPolicy>

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-12-22
      • 2012-06-24
      • 1970-01-01
      • 1970-01-01
      • 2019-01-30
      • 2016-10-01
      • 1970-01-01
      相关资源
      最近更新 更多