Hi, We have a setup Artemis broker sits behind SSL offloading hardware.
client ---TLS---> VIP(ssl-offload) ---TCP--> Artemis broker We have a HA setup with one master and one broker. I have followed the examples and add two TransportConfigurations one for each. ActiveMQConnectionFactory connectionFactory = ActiveMQJMSClient.createConnectionFactoryWithHA( JMSFactoryType.CF, masterConfig, slaveConfig); Since Artemis client uses by default RoundRobinConnectionLoadBalancingPolicy to pick initial connector and first one is random sometimes its picking slaveConfig to connect. Because we have VIP in front, connection itself is successful all the time even though broker behind it might be down. Naturally connector gets an error while trying to download clusterTopology. When this happens, instead of trying other available connector Artemis client errors out. I think this is wrong behavior. It should try out all available connectors before erroring out. Please let me know if I am missing something here or any comments or thoughts are welcome. Exception in thread "main" javax.jms.JMSRuntimeException: Failed to create session factory at org.apache.activemq.artemis.jms.client.JmsExceptionUtils.convertToRuntimeException(JmsExceptionUtils.java:88) at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createContext(ActiveMQConnectionFactory.java:267) at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createContext(ActiveMQConnectionFactory.java:253) at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createContext(ActiveMQConnectionFactory.java:243) at com.abhiz.artemis.QueueExample.main(QueueExample.java:47) Caused by: javax.jms.JMSException: Failed to create session factory at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:735) at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createContext(ActiveMQConnectionFactory.java:260) ... 3 more Caused by: ActiveMQConnectionTimedOutException[errorType=CONNECTION_TIMEDOUT message=AMQ119013: Timed out waiting to receive cluster topology. Group:null] at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:828) at org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory.createConnectionInternal(ActiveMQConnectionFactory.java:732) ... 4 more -- View this message in context: http://activemq.2283324.n4.nabble.com/Artemis-Issue-with-static-connectors-tp4711907.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.