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 Java / JMS » Displaying number of receivers(IPROC) for a particular queue

Post new topic  Reply to topic
 Displaying number of receivers(IPROC) for a particular queue « View previous topic :: View next topic » 
Author Message
bce
PostPosted: Sun Dec 07, 2008 9:09 pm    Post subject: Displaying number of receivers(IPROC) for a particular queue Reply with quote

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
View user's profile Send private message
manicminer
PostPosted: Mon Dec 08, 2008 12:16 am    Post subject: Reply with quote

Disciple

Joined: 11 Jul 2007
Posts: 177

Build the correct PCF message, send it to the queue manager, read result.

MS0B comes with examples on how to send a message, you can use than in conjunction with the PCF manual (link below is to inquire queue status):

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzac.doc/pc13140_.htm

Starting with something like the ListQueueDepth example would probably be a good idea.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Dec 08, 2008 12:16 am    Post subject: Re: Displaying number of receivers(IPROC) for a particular q Reply with quote

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
View user's profile Send private message
elvis_gn
PostPosted: Mon Dec 08, 2008 12:28 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
bce
PostPosted: Tue Dec 09, 2008 2:07 am    Post subject: Reply with quote

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
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 Java / JMS » Displaying number of receivers(IPROC) for a particular queue
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.