Author |
Message
|
dnoam |
Posted: Thu May 25, 2006 6:09 am Post subject: MQClient: What if the server is down / Service is stopped... |
|
|
Apprentice
Joined: 23 Jan 2006 Posts: 25
|
Hi.
We have MQ Server (Windows), and MQ Client (UNIX).
We would like to test our UNIX application in some unpleasent conditions.
I would think of the main 4 APIs:
- MQCONN
- MQOPEN
- MQGET
- MQPUT
And the following conditions:
- Server is down
- MQ Service is down
- QM is down
- Channel is down
And see what RC we get with each of the 16 combinations.
(I know some are trivial)
Did anyone do this before and can share her conclusions?
TIA |
|
Back to top |
|
 |
Vitor |
Posted: Thu May 25, 2006 6:22 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Wrong sex to share conclusions but for what it's worth I'd expect most of those situations to return a 2059 (Queue Manager Unavailable).
Experimentation is the mother of certainty. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu May 25, 2006 6:31 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Not all of those calls are capable of returning 2059. (EDIT: looking a little more, maybe I'm wrong.)
Some of them will return a 2009. In some cases you'll get a 2018, and various other things.
Best bet is to go through the APR on each of the verbs and look at what reason codes each verb can return that might be related to a bad connection.
For example, a quick glance at the MQCONN suggests that one could get 2009, 2273, 2202, 2203, 2018, 2059, 2161, 2162 - depending on what state the queue manager is in when the MQCONN is issued.
If the machine itself is down or the network is down, then a 2059 is what you'll get.
But don't forget to expect a 2195 sometimes, too. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Nigelg |
Posted: Thu May 25, 2006 11:57 pm Post subject: |
|
|
Grand Master
Joined: 02 Aug 2004 Posts: 1046
|
It is only the java client which returns a 2195; the C clients return rather more informative errors. _________________ MQSeries.net helps those who help themselves.. |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri May 26, 2006 6:01 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Nigelg wrote: |
It is only the java client which returns a 2195; the C clients return rather more informative errors. |
Are you saying that the C client will always know what to expect?
Hrm.
What if someone ran amqiclen on a shared segment that the client agent was using...? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
dnoam |
Posted: Mon May 29, 2006 6:15 am Post subject: |
|
|
Apprentice
Joined: 23 Jan 2006 Posts: 25
|
Thanks for all the replies |
|
Back to top |
|
 |
|