• 1 reply
  • Latest Post - ‏2013-05-03T06:55:30Z by PravinKapile
8523 Posts

Pinned topic How do I auto-connect IBM MQ client ?

‏2013-04-05T23:21:59Z |
I am using the MQ.NET classes of the MQ 7x client, and importing and exporting messages works fine. However, if there is a network disconnect or the remote manager is disconnected, the IBM MQ client doesn't automatically reconnect. I get:

Error: Remote host not available, retry later.

Is there a way to auto-connect and continue processing the message when these kind of issues occur?

There is a property to check the connection of the queue manager:

mqQMgr = new MQQueueManager("My queue manager name" ,"my channel name",",my connection name");

`mqQMgr.IsConnected` returns true/false, but this doesn't help to auto-connect.