|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
what to do when MQRC_CONNECTION_BROKEN |
« View previous topic :: View next topic » |
Author |
Message
|
sebastia |
Posted: Tue Aug 29, 2006 9:51 am Post subject: what to do when MQRC_CONNECTION_BROKEN |
|
|
 Grand Master
Joined: 07 Oct 2004 Posts: 1003
|
We are using Java to access z/OS queues, MQ version 6.
We tested to unplug the network cable,
and this is what happened :
a) the MQGET() produces a RC = 2009, MQRC_CONNECTION_BROKEN
b) exception has coded a MQDISC() that gives RC = 2019 HOBJ_ERROR
c) we plug the cable back
d) we reach to MQCONNECT() that goes OK
... but ...
the Queue Manager in z/OS displays a new channel instance !
I mean there are 2 of them !!
How can we avoid this ?
Is there any "correct" programming sequence for the RC = 2009 ?
Sebastian. |
|
Back to top |
|
 |
wschutz |
Posted: Tue Aug 29, 2006 10:49 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
|
Back to top |
|
 |
tleichen |
Posted: Wed Aug 30, 2006 9:56 am Post subject: Re: what to do when MQRC_CONNECTION_BROKEN |
|
|
Yatiri
Joined: 11 Apr 2005 Posts: 663 Location: Center of the USA
|
sebastia wrote: |
How can we avoid this ?
Is there any "correct" programming sequence for the RC = 2009 ?
Sebastian. |
Most of the time that I have run into RC=2009, it was when a program got a fatal error on an MQ call, and then continued to make subsequent MQ calls. _________________ IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Aug 30, 2006 2:35 pm Post subject: Re: what to do when MQRC_CONNECTION_BROKEN |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
sebastia wrote: |
How can we avoid this ?
Is there any "correct" programming sequence for the RC = 2009 ?
Sebastian. |
Usually and on the off chance that this is just a blip on the net I like developers to still attempt the close before they open a new channel. However they need to handle the possibility of an exception on the close...
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|