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 » General IBM MQ Support » MQClient: What if the server is down / Service is stopped...

Post new topic  Reply to topic
 MQClient: What if the server is down / Service is stopped... « View previous topic :: View next topic » 
Author Message
dnoam
PostPosted: Thu May 25, 2006 6:09 am    Post subject: MQClient: What if the server is down / Service is stopped... Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Thu May 25, 2006 6:22 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Thu May 25, 2006 6:31 am    Post subject: Reply with quote

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
View user's profile Send private message
Nigelg
PostPosted: Thu May 25, 2006 11:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Fri May 26, 2006 6:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
dnoam
PostPosted: Mon May 29, 2006 6:15 am    Post subject: Reply with quote

Apprentice

Joined: 23 Jan 2006
Posts: 25

Thanks for all the replies
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 » General IBM MQ Support » MQClient: What if the server is down / Service is stopped...
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.