Posted: Mon Jan 27, 2003 2:13 am Post subject: Reconnection after exception MQRC_CONNECTION_BROKEN
Newbie
Joined: 27 Jan 2003 Posts: 4 Location: Zürich, Switzerland
Hi,
We have a MQ JSM version 5.1 running under windows 2000, we are a little new to this stuff but we would like
to know is it possible to reconnect to a queue after a network outrage (when we are reading the message from the queue).
Should we catch the MQRC_CONNECTION_BROKEN exception, sleep and reopen and reconnect to the queue - we are doing this
at the moment with the heartbeat of 10 seconds (we are opening the queue in exclusive only) and it seems to work
but is there a better solution?
We would like to connect to the queue using exclusive mode - to guarantee that only one program can read from the queue.
We have used the old trail and error method and when we open the queue exclusive with a heartbeat of 0 then the program
gets a network outrage and ends - we cannot read message from the queue with out restarting the whole thing (even when
we push new messages in the queue) - is there a way to avoid this?
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