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 API Support » QMgr status using getOpenInputCount()

Post new topic  Reply to topic
 QMgr status using getOpenInputCount() « View previous topic :: View next topic » 
Author Message
stealth
PostPosted: Sun Mar 04, 2007 10:10 pm    Post subject: QMgr status using getOpenInputCount() Reply with quote

Newbie

Joined: 04 Mar 2007
Posts: 1

Hi, Please suggest me whether it is best to use getOpenInputCount()/getOpenOutputCount() on a Queue defined on a QMgr, to check the MQGr status.

Thanks
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Mar 05, 2007 7:13 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Those only tell you how many programs have a queue open for input or output.

They do not directly tell you anything meaningful about the status of the queue manager.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
ydsk
PostPosted: Thu Mar 08, 2007 4:29 pm    Post subject: Reply with quote

Chevalier

Joined: 23 May 2005
Posts: 410

If you specify FAIL_IF_QUIESCING option when you open the queue, will it not help in knowing the status of the qmgr ?

I just thought of it but I'll leave it to the experts to comment on it.

thnx.
ydsk.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Mar 09, 2007 4:30 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

If you actually get back a return code that indicates that the connection has failed because the qmgr is quiescing..., then, yes it tells you *something* about the status of the qmgr.

But whether or not you get that RC depends entirely on what sequence of MQ API calls you perform. If, for example, you are doing a lot of puts, you might instead get a connection closed RC, rather than the quiescing one.

So it's not what I would consider a reliable way to get the qmgr status.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Mar 09, 2007 4:30 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

If you actually get back a return code that indicates that the connection has failed because the qmgr is quiescing..., then, yes it tells you *something* about the status of the qmgr.

But whether or not you get that RC depends entirely on what sequence of MQ API calls you perform. If, for example, you are doing a lot of puts, you might instead get a connection closed RC, rather than the quiescing one.

So it's not what I would consider a reliable way to get the qmgr status.
_________________
I am *not* the model of the modern major general.
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 API Support » QMgr status using getOpenInputCount()
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.