【发布时间】:2020-04-21 03:13:20
【问题描述】:
我正在使用由 3 个代理(1 个主设备,2 个从设备)组成的 ActiveMQ Artemis 集群,使用 UDP 广播进行设置。
ActiveMQ Artemis 正在按预期启动,但在尝试使用 SAG webMethods 创建 JMS 连接时,它返回错误:
clientID=activemq was already set into another connection
我有 3 个集成服务器,每个都配置了这个 JNDI 配置,指向 3 个 ActiveMQ Artemis 代理:
-
初始上下文工厂:
org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory -
提供者网址:
tcp://S1:9000?sslEnabled=true&ha=true&reconnectAttempts=-1 -
提供者 URL 故障转移列表:
tcp://S2:9000?sslEnabled=true,tcp://S3:9000?sslEnabled=true
我需要将我的 T1、T2 和 T3 webmethods 服务器连接到 ActiveMQ Artemis 集群。在 T1 服务器上,我设法以 activemq 作为 clientID 建立 JMS 连接。但在剩余的 T2 和 T3 webmethods 服务器上,返回错误 clientID=activemq was already set into another connection。
ActiveMQ Artemis 支持 JMS 2.0,并且应该可以有多个客户端指向相同的 clientID/destination,对吧?它允许共享订阅。
我在这里缺少什么?我根本没有创建任何主题,我只想先在 3 个服务器上建立 JMS 连接。
【问题讨论】:
标签: activemq-artemis webmethods