【问题标题】:Make DefaultMessageListenerContainer with subscriptionShared and subscriptionDurable使用 subscriptionShared 和 subscriptionDurable 制作 DefaultMessageListenerContainer
【发布时间】:2020-08-30 07:22:34
【问题描述】:

我想在DefaultMessageListenerContainer 中使用subscriptionSharedsubscriptionDurable,因为在所有消费者之间有一个共享的持久订阅。

Tomcat 启动后,我多次看到此日志消息,似乎我的主题有问题:

Setup of JMS message listener invoker failed for destination x.y.z trying to recover. cause:org.apache.activemq.ActiveMQSession.createSharedDurableConsumer (Ljavax/jms/Topic;Ljava/lang/String;)Ljavax/jms/MessageConsumer"

我的 Spring 版本是 4.3.8。我使用 ActiveMQ Artemis 2.9.0 和 JMS 2.0

【问题讨论】:

    标签: spring spring-jms activemq-artemis


    【解决方案1】:

    基于错误消息包含org.apache.activemq.ActiveMQSession 的事实,在我看来,您正在使用 ActiveMQ 5.x 中的 OpenWire JMS 客户端。此 JMS 客户端不支持 JMS 2.0,因此不支持共享持久订阅。您需要使用 ActiveMQ Artemis 的 JMS 客户端。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-08-16
      • 2019-07-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-07-25
      • 1970-01-01
      相关资源
      最近更新 更多