0
votes

Is it possible to configure failover URI for native Artemis server in Wildfly 14? I'd like to create pooled connection factory with url like (tcp://localhost:61616,tcp://localhost:61617). As far as I know wildfly creates connection factory from connector host and port. I use Wildfly 14.0.1.Final and Artemis 2.6.3.

Update

<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"  />

Update

When master node stops the slave becomes live but the jee app is unable to send/consume messages 30 for seconds. After this period everything works fine.

1

1 Answers

1
votes

The syntax (tcp://localhost:61616,tcp://localhost:61617) is just a way to configure multiple initial connectors via a URL. You can accomplish the same thing in Wildfly by defining multiple remote-connector elements and referencing those in the connectors attribute of the pooled-connection-factory.