Posted: Tue Oct 03, 2006 2:18 pm Post subject: Stop Connect Retries
Centurion
Joined: 13 Apr 2005 Posts: 103
MQ 5.3.10 Solaris
I have 2 queue managers, a primary and a backup. I am trying to write code to catch any exceptions that are caused by MQ being down (either the Server, the Listener or the machine).
If I shutdown the queue manager or the listener I get an exception when trying to connect via JMS, this is expected. Although if I shutdown the machine I get issues because the software will try to connect, and try again and again... 10 times it will retry before throwing a cannot connect exception. After the 10th times 450 seconds have gone by. I would like it to try and connect and if MQ is not there immediately throw back an exception. Is there a way to turn off this retry on the OS?
I notice that if I ssh to this machine while its down it takes quite a while before it says connection refused also.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum