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 » Mainframe, CICS, TXSeries » Varied MQ Return Codes

Post new topic  Reply to topic
 Varied MQ Return Codes « View previous topic :: View next topic » 
Author Message
morfius9
PostPosted: Wed May 23, 2007 11:01 pm    Post subject: Varied MQ Return Codes Reply with quote

Novice

Joined: 06 May 2007
Posts: 13

hi,
I have an application that is putting messages to a queue. I brought down the queue manager associated with the same when this application was running and the return codes that i recieved are confusing.
1. 2085 - UNKNOWN OBJECT NAME initially.
2. 2161 - Queue Manager Quiecising
3. 2162 - Queue Manager Stopping all the time that the queue manager was down.
4. When i brought the queue manager up, i started recieving 2203 Connection Stopping return code. Finally i had to stop this program and restart it in CICS.
Can anyone help explain why this is happening?
Thanks, Morf
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed May 23, 2007 11:34 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

I'd guess you had a temporary dynamic queue in there which deleted when the queue manager came down, hence the 2085.

The 2161/2162 codes are attempting to signal the closedown of the queue manager; your application should close in response.

The 2203 indicates your connection is stopping, because the queue manager instance you were connected to is stopping. As you've correctly determined, you need to reconnect to the running instance.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
morfius9
PostPosted: Wed May 23, 2007 11:37 pm    Post subject: Reply with quote

Novice

Joined: 06 May 2007
Posts: 13

Why is it giving me 2203 when the queue manager was again brought up? And all the time when im getting 2162, my queue manager was down for last one hour.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu May 24, 2007 12:25 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

morfius9 wrote:
Why is it giving me 2203 when the queue manager was again brought up? And all the time when im getting 2162, my queue manager was down for last one hour.


You get a 2162 because there's no code for "stopped". The design expectation is that your program will bail on the first 2162, not sit there for an hour listening to more of them.

The 2203 has the same basic reason - it's a fatal "queue manager unconditionally stopping" which should cause your app to drop out. The queue manager which came back up is not the same instance that went down; different task id and so forth. The connection to that queue manager remains stopped.

It's for this reason the app should close when signalled that the queue manager is stopping (by whatever means).
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
zpat
PostPosted: Thu May 24, 2007 12:31 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

The moral of this story is to stop the CICS regions before stopping the queue manager (and vice versa).
Back to top
View user's profile Send private message
morfius9
PostPosted: Mon May 28, 2007 12:24 am    Post subject: Reply with quote

Novice

Joined: 06 May 2007
Posts: 13

Hmm....I get it now...I guess my program needs to be more efficient in handling this stuff. Thanks a lot guys for this eye opener.
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 » Mainframe, CICS, TXSeries » Varied MQ Return Codes
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.