Thanks. It did not really work and I think it is because connection itself is successful but it cannot go any further because of SSL. I think it is bug and will see if I can file report with example.
I got around it by setting call timeout. Below settings stops trying to connect after 1 second regardless of attempts. connectionfactory.setCallTimeout(1000); Thanks Abhi -- View this message in context: http://activemq.2283324.n4.nabble.com/Artemis-Connection-retry-during-initial-connection-tp4709695p4709935.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.