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 » General Discussion » MQ channel information thru Java

Post new topic  Reply to topic
 MQ channel information thru Java « View previous topic :: View next topic » 
Author Message
tennisplayer007
PostPosted: Wed Aug 03, 2005 3:42 pm    Post subject: MQ channel information thru Java Reply with quote

Newbie

Joined: 03 Aug 2005
Posts: 3

Hey:

I am writing a java application to retrieve information from MQ Manager information. Thus far I have used PCF to get the Queue Depth and Queue Name. I was wondering how I might be able to get the Channel name and the number of Channels connected from the MQ Manager.

Thanks!
Back to top
View user's profile Send private message
vennela
PostPosted: Wed Aug 03, 2005 3:55 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Are you asking if you can get the channel info using PCF?
If yes, then the answer is yes.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
tennisplayer007
PostPosted: Thu Aug 04, 2005 6:57 am    Post subject: Reply with quote

Newbie

Joined: 03 Aug 2005
Posts: 3

hey that is what I am asking - but how do I implement it? Help at your earliest please!!
Back to top
View user's profile Send private message
wschutz
PostPosted: Thu Aug 04, 2005 7:01 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Hvae a look at supportpac MS0B WebSphere MQ Java classes for PCF:
http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg24000668&loc=en_US&cs=utf-8&lang=en
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
tennisplayer007
PostPosted: Thu Aug 04, 2005 7:03 am    Post subject: Reply with quote

Newbie

Joined: 03 Aug 2005
Posts: 3

Code Snippet!

PCFAgent agent;
int [] attrs =
{
CMQC.MQCA_Q_NAME,
CMQC.MQIA_CURRENT_Q_DEPTH

};
PCFParameter [] parameters =
{
new MQCFST (CMQC.MQCA_Q_NAME, "*"),
new MQCFIN (CMQC.MQIA_Q_TYPE, CMQC.MQQT_LOCAL),
new MQCFIL (CMQCFC.MQIACF_Q_ATTRS, attrs)

};

responses = agent.send (CMQCFC.MQCMD_INQUIRE_Q, parameters);
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 » General Discussion » MQ channel information thru Java
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.