IS goes unresponsive when JMS is down

Hello,

We are seeing this strange problem and every time we have this problem, we had to restart the sever.

We are using ActiveMQ as the JMS Provider and using JNDI lookup.

url is

[INDENT]failover:(ssl://xxxx.xxx:xxxx,ssl:
//xxxxx.xxx:xxxx)?randomize=false&timeout=20000

[/INDENT]When the activeMQ goes down, we are seeing the below message in server log.

[INDENT] [ISS.0134.0020E] Exception occured while pinging JMS provider “xxxxxxx”: javax.jms.JMSException: Failover timeout of 20000 ms reached.

[/INDENT]server keep on trying to connect to activeMQ and goes unresponsive throwing the above message. We had to restart the server every time this problem occurs

Can someone please suggest what to do to avoid this problem and not restart all the time?

Thanks in advance.