WIldfly 14 中的故障转移 Artemis URI
Failover Artemis URI in WIldfly 14
是否可以在 Wildfly 14 中为原生 Artemis 服务器配置故障转移 URI?我想用 url 创建池化连接工厂,例如 (tcp://localhost:61616,tcp://localhost:61617)
。据我所知,wildfly 从连接器主机和端口创建连接工厂。我使用 Wildfly 14.0.1.Final 和 Artemis 2.6.3.
更新
<remote-connector name="remote-artemis-master" socket-binding="remote-artemis-master" />
<remote-connector name="remote-artemis-slave" socket-binding="remote-artemis-slave" />
<pooled-connection-factory
ha="true"
name="activemq-ra"
connectors="remote-artemis-master remote-artemis-slave"
entries="java:/JmsXA java:jboss/DefaultJMSConnectionFactory"
transaction="xa"
user="user"
password="password" />
更新
当主节点停止时,从属节点变为活动状态,但 jee 应用程序无法 send/consume 消息 30 秒。这段时间过后一切正常。
语法 (tcp://localhost:61616,tcp://localhost:61617)
只是一种通过 URL 配置多个初始连接器的方法。您可以在 Wildfly 中通过定义多个 remote-connector
元素并在 pooled-connection-factory
.
的 connectors
属性中引用这些元素来完成相同的事情
是否可以在 Wildfly 14 中为原生 Artemis 服务器配置故障转移 URI?我想用 url 创建池化连接工厂,例如 (tcp://localhost:61616,tcp://localhost:61617)
。据我所知,wildfly 从连接器主机和端口创建连接工厂。我使用 Wildfly 14.0.1.Final 和 Artemis 2.6.3.
更新
<remote-connector name="remote-artemis-master" socket-binding="remote-artemis-master" />
<remote-connector name="remote-artemis-slave" socket-binding="remote-artemis-slave" />
<pooled-connection-factory
ha="true"
name="activemq-ra"
connectors="remote-artemis-master remote-artemis-slave"
entries="java:/JmsXA java:jboss/DefaultJMSConnectionFactory"
transaction="xa"
user="user"
password="password" />
更新
当主节点停止时,从属节点变为活动状态,但 jee 应用程序无法 send/consume 消息 30 秒。这段时间过后一切正常。
语法 (tcp://localhost:61616,tcp://localhost:61617)
只是一种通过 URL 配置多个初始连接器的方法。您可以在 Wildfly 中通过定义多个 remote-connector
元素并在 pooled-connection-factory
.
connectors
属性中引用这些元素来完成相同的事情