|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
QMgr status using getOpenInputCount() |
« View previous topic :: View next topic » |
Author |
Message
|
stealth |
Posted: Sun Mar 04, 2007 10:10 pm Post subject: QMgr status using getOpenInputCount() |
|
|
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 |
|
 |
jefflowrey |
Posted: Mon Mar 05, 2007 7:13 pm Post subject: |
|
|
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 |
|
 |
ydsk |
Posted: Thu Mar 08, 2007 4:29 pm Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Fri Mar 09, 2007 4:30 am Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Fri Mar 09, 2007 4:30 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|