Hi @Mansi …! Welcome to the Solace Community.
Ok, so if I understand you correctly: your app tried to connect to Solace, but it was down (which you knew), but the app took 10 minutes to throw an exception saying that there was a problem?
I’m curious: what have you configured your reconnection settings to? Is it possible you have your retries configured similar to PubSub+ Messaging API Developer Guide which gives approximately 5 minutes of retry attempts? If you are using a comma-separated hostlist (for “active” and “standby” brokers), then it is possible the entire reconnection attempt could take 10 minutes before finally giving up.
That’s only for reconnections though, which means you would have had a connection before.
Do you have logging enabled/configured? Using log4j or something, you should be able to see any reconnect attempts to the broker.
I’ve started writing some new samples for JMS, maybe see if you see the same things? https://github.com/SolaceSamples/solace-samples-jms/tree/update-gradle/src/main/java/com/solace/samples/jms/patterns
Or just clone this branch, and give it a try: https://github.com/SolaceSamples/solace-samples-jms/tree/update-gradle