ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » what to do when MQRC_CONNECTION_BROKEN

Post new topic  Reply to topic
 what to do when MQRC_CONNECTION_BROKEN « View previous topic :: View next topic » 
Author Message
sebastia
PostPosted: Tue Aug 29, 2006 9:51 am    Post subject: what to do when MQRC_CONNECTION_BROKEN Reply with quote

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
View user's profile Send private message Visit poster's website
wschutz
PostPosted: Tue Aug 29, 2006 10:49 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Have a look at the adoptmca attributes of the qmgr here:
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzaj.doc/csqzaj1022.htm
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
tleichen
PostPosted: Wed Aug 30, 2006 9:56 am    Post subject: Re: what to do when MQRC_CONNECTION_BROKEN Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Wed Aug 30, 2006 2:35 pm    Post subject: Re: what to do when MQRC_CONNECTION_BROKEN Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » what to do when MQRC_CONNECTION_BROKEN
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.