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 » How can we get all queue names - JAVA

Post new topic  This topic is locked: you cannot edit posts or make replies.
 How can we get all queue names - JAVA « View previous topic :: View next topic » 
Author Message
asudhakar
PostPosted: Thu Jun 04, 2009 3:26 am    Post subject: How can we get all queue names - JAVA Reply with quote

Centurion

Joined: 12 May 2007
Posts: 116
Location: Bangalore

Hi 2 all,

I have a scenario to get all queue properties throug java program.

I developed a java program to get one queue property. Can we get all the queue names by QM using JAVA.

My Program :
******
//Queue Manager properties
MQQueueManager qMgr = new MQQueueManager("QM1");
int openOptions = MQC.MQOO_SET|MQC.MQOO_INQUIRE;
MQQueue queue = qMgr.accessQueue("qName", openOptions);
System.out.print("\n"+qName+"("+queue.getCurrentDepth()+")");

Is there any method to get all the queue names from QM object.

Can any one suggest.
_________________
WebSphere MQ, MB Support and Admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  This topic is locked: you cannot edit posts or make replies. Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » How can we get all queue names - 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.