Hi, I am trying to test initial connection factory retry attempts if connection is unsuccessful. To try this I purposefully did not enable SSL where as my server is setup for TLS communication.
Please find below my code ActiveMQConnectionFactory cf = ActiveMQJMSClient.createConnectionFactoryWithHA(JMSFactoryType.CF, server1, server2); cf.setRetryInterval(1000); cf.setReconnectAttempts(3); cf.setRetryIntervalMultiplier(1.0); When I run connection factory keeps on trying to connect even after 3 attempts. I am not sure why this keeps trying. Is there any other flag I am missing here? I was also looking at some documentation or example on initial retry attempts. Any help is greatly appreciated. Thanks 15:46:09.200 [Thread-10 (ActiveMQ-client-global-threads-1238683479)] DEBUG o.a.activemq.artemis.core.client - Started Netty Connector version 4.0.32.Final 15:46:09.200 [Thread-10 (ActiveMQ-client-global-threads-1238683479)] DEBUG o.a.activemq.artemis.core.client - Remote destination: artemis01-dev.myserver.com:61616 15:46:09.306 [Thread-10 (ActiveMQ-client-global-threads-1238683479)] DEBUG o.a.activemq.artemis.core.client - Reconnection successful 15:46:09.495 [Thread-11 (ActiveMQ-client-global-threads-1238683479)] DEBUG o.a.activemq.artemis.core.client - Trying reconnection attempt 0/5 15:46:09.496 [Thread-11 (ActiveMQ-client-global-threads-1238683479)] DEBUG o.a.activemq.artemis.core.client - Trying to connect with connector = org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnectorFactory@701b206f, parameters = {port=61616, host=artemis01-dev.myserver.com} connector = null 15:46:09.496 [Thread-11 (ActiveMQ-client-global-threads-1238683479)] DEBUG o.a.activemq.artemis.core.client - Started Netty Connector version 4.0.32.Final 15:46:09.496 [Thread-11 (ActiveMQ-client-global-threads-1238683479)] DEBUG o.a.activemq.artemis.core.client - Remote destination: artemis01-dev.myserver.com:61616 15:46:09.602 [Thread-11 (ActiveMQ-client-global-threads-1238683479)] DEBUG o.a.activemq.artemis.core.client - Reconnection successful 15:46:09.796 [Thread-12 (ActiveMQ-client-global-threads-1238683479)] DEBUG o.a.activemq.artemis.core.client - Trying reconnection attempt 0/5 15:46:09.796 [Thread-12 (ActiveMQ-client-global-threads-1238683479)] DEBUG o.a.activemq.artemis.core.client - Trying to connect with connector = org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnectorFactory@701b206f, parameters = {port=61616, host=artemis01-dev.myserver.com} connector = null 15:46:09.796 [Thread-12 (ActiveMQ-client-global-threads-1238683479)] DEBUG o.a.activemq.artemis.core.client - Started Netty Connector version 4.0.32.Final 15:46:09.796 [Thread-12 (ActiveMQ-client-global-threads-1238683479)] DEBUG o.a.activemq.artemis.core.client - Remote destination: artemis01-dev.myserver.com:61616 15:46:09.893 [Thread-12 (ActiveMQ-client-global-threads-1238683479)] DEBUG o.a.activemq.artemis.core.client - Reconnection successful 15:46:10.084 [Thread-13 (ActiveMQ-client-global-threads-1238683479)] DEBUG o.a.activemq.artemis.core.client - Trying reconnection attempt 0/5 15:46:10.084 [Thread-13 (ActiveMQ-client-global-threads-1238683479)] DEBUG o.a.activemq.artemis.core.client - Trying to connect with connector = org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnectorFactory@701b206f, parameters = {port=61616, host=artemis01-dev.myserver.com} connector = null 15:46:10.084 [Thread-13 (ActiveMQ-client-global-threads-1238683479)] DEBUG o.a.activemq.artemis.core.client - Started Netty Connector version 4.0.32.Final 15:46:10.084 [Thread-13 (ActiveMQ-client-global-threads-1238683479)] DEBUG o.a.activemq.artemis.core.client - Remote destination: artemis01-dev.myserver.com:61616 -- View this message in context: http://activemq.2283324.n4.nabble.com/Artemis-Connection-retry-during-initial-connection-tp4709695.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.