Author |
Message
|
sijtom0703 |
Posted: Fri Jan 04, 2013 9:14 pm Post subject: Error handling for MQ Reason code 2009 |
|
|
 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 |
|
 |
zpat |
Posted: Sat Jan 05, 2013 3:52 am Post subject: |
|
|
 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 |
|
 |
sijtom0703 |
Posted: Sat Jan 05, 2013 6:23 pm Post subject: |
|
|
 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 |
|
 |
zpat |
Posted: Sun Jan 06, 2013 12:46 am Post subject: |
|
|
 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 |
|
 |
fjb_saper |
Posted: Sun Jan 06, 2013 6:43 am Post subject: |
|
|
 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 |
|
 |
mqjeff |
Posted: Sun Jan 06, 2013 7:06 am Post subject: |
|
|
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 |
|
 |
PeterPotkay |
Posted: Sun Jan 06, 2013 7:57 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
|
Back to top |
|
 |
|