首页 > 解决方案 > Camel + Spring 的持久订阅有问题

问题描述

我正在使用 Apache Camel 3.4 + Spring Boot 2.3.1 在 ActiveMQ Artemis 上创建持久订阅:

from("jms:topic:{{spring.artemis.topicname}}?clientId={{spring.artemis.clientname}}&durableSubscriptionName={{spring.artemis.durablesubscriptionname}}&subscriptionShared=true")

但我收到了如下异常。有没有人有建议或想法如何解决它?

Cause: setClientID call not supported on proxy for shared Connection. Set the 'clientId' property on the SingleConnectionFactory instead.

标签: apache-cameljms

解决方案


推荐阅读