|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Displaying number of receivers(IPROC) for a particular queue |
« View previous topic :: View next topic » |
Author |
Message
|
bce |
Posted: Sun Dec 07, 2008 9:09 pm Post subject: Displaying number of receivers(IPROC) for a particular queue |
|
|
Novice
Joined: 07 Dec 2008 Posts: 11
|
Hi,
I am using MS0B Java PCF classes .
Can anyone tell me how to display the number of receivers(IPROC) for a particular queue.
Thanks in advance,
bce |
|
Back to top |
|
 |
manicminer |
Posted: Mon Dec 08, 2008 12:16 am Post subject: |
|
|
 Disciple
Joined: 11 Jul 2007 Posts: 177
|
|
Back to top |
|
 |
Vitor |
Posted: Mon Dec 08, 2008 12:16 am Post subject: Re: Displaying number of receivers(IPROC) for a particular q |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
bce wrote: |
Can anyone tell me how to display the number of receivers(IPROC) for a particular queue.
|
I'd say issuing a PCF command would be the most appropriate method in your circumstances!
Presumably you've tried this and something bad happened? If you could give us some details we might be able to assist?
Alternatively you could issue a DISPLAY command for the relevant queue, or use a commercial monitoring solution. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
elvis_gn |
Posted: Mon Dec 08, 2008 12:28 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi bce,
Code: |
PCFMessageAgent agent = new PCFMessageAgent(ipAddress, port, channel);
int[] attrs = { CMQC.MQIA_OPEN_INPUT_COUNT, CMQC.MQIA_OPEN_OUTPUT_COUNT };
PCFMessage request = new PCFMessage(CMQCFC.MQCMD_INQUIRE_Q_STATUS);
request.addParameter(CMQC.MQCA_Q_NAME, queueName);
request.addParameter(CMQCFC.MQIACF_Q_STATUS_ATTRS, attrs);
PCFMessage[] response = agent.send(request);
int in_cnt = response.getParameterValue(CMQC.MQIA_OPEN_INPUT_COUNT);
int out_cnt = response.getParameterValue(CMQC.MQIA_OPEN_OUTPUT_COUNT); |
One way of doing it I guess...
Regards. |
|
Back to top |
|
 |
bce |
Posted: Tue Dec 09, 2008 2:07 am Post subject: |
|
|
Novice
Joined: 07 Dec 2008 Posts: 11
|
Hi All,
Thanks for your guidance; I am able to get the list of queues and its listeners. |
|
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
|
|
|
|