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 » Error handling for MQ Reason code 2009

Post new topic  Reply to topic
 Error handling for MQ Reason code 2009 « View previous topic :: View next topic » 
Author Message
sijtom0703
PostPosted: Fri Jan 04, 2013 9:14 pm    Post subject: Error handling for MQ Reason code 2009 Reply with quote

Voyager

Joined: 28 May 2011
Posts: 84
Location: USA

Hi,

I am trying to figure out the best way to write error handling code for mq client applications in Java and .NET to handle mq reason code 2009 error

Quote:
2009 0x000007d9 MQRC_CONNECTION_BROKEN


Inside the error handler I will write the code to disconnect the application from Queue Manager and reconnnect again there by there wont be broken connection handlers which will be keep throwing 2009 error.

Is there any good suggestions I can do if I am doing the error handling in the code than the Application server
Back to top
View user's profile Send private message
zpat
PostPosted: Sat Jan 05, 2013 3:52 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Have a delay (sleep) before reconnecting each time, otherwise a constant issue would loop the program and bombard the queue manager.

You might be able to use the client auto-reconnect feature, which would prevent the application from seeing the 2009.
Back to top
View user's profile Send private message
sijtom0703
PostPosted: Sat Jan 05, 2013 6:23 pm    Post subject: Reply with quote

Voyager

Joined: 28 May 2011
Posts: 84
Location: USA

Does the client auto-reconnect feature requires multi instance queue manager setup and multiple connection names provided in the MQCONNX call?
Back to top
View user's profile Send private message
zpat
PostPosted: Sun Jan 06, 2013 12:46 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Not necessarily.

It could just try to reconnect to the same queue manager address. This might work if the connection was broken for temporary network reasons, or you were using HA/CMP which keeps the same IP address on failover.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun Jan 06, 2013 6:43 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Don't forget to add the multi-instance qmgr (V7) into the mix...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Sun Jan 06, 2013 7:06 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

sijtom0703 wrote:
Does the client auto-reconnect feature requires multi instance queue manager setup and multiple connection names provided in the MQCONNX call?


No.

It can reconnect to one address, or more than one address, or more than one queue manager in a CCDT group.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Sun Jan 06, 2013 7:57 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

sijtom0703,
Review Table 1 at the below link as this feature is not available for all MQ Clients.

http://publib.boulder.ibm.com/infocenter/wmqv7/v7r1/topic/com.ibm.mq.doc/cs70190_.htm
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Error handling for MQ Reason code 2009
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.