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 » Inquire on Queue Manager for Queue List

Post new topic  Reply to topic
 Inquire on Queue Manager for Queue List « View previous topic :: View next topic » 
Author Message
sp01
PostPosted: Sun Aug 10, 2003 5:43 pm    Post subject: Inquire on Queue Manager for Queue List Reply with quote

Newbie

Joined: 10 Aug 2003
Posts: 2

Is there any way to ask the queue manager what queues it is managing?
Back to top
View user's profile Send private message
EddieA
PostPosted: Sun Aug 10, 2003 5:48 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

How about a runmqsc:

dis qlocal(*)

Or you can do the same thing programatically via PCF.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
sp01
PostPosted: Sun Aug 10, 2003 7:10 pm    Post subject: Reply with quote

Newbie

Joined: 10 Aug 2003
Posts: 2

My fault, didn't make it clear. I want a java program that can get a list of queues that a queue manager controls. This will be a remote queue manager and may be on windows or OS/390.

thanks.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Sun Aug 10, 2003 9:21 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Hi,

Getting a list of queues from WinNT/2000 (or Unix) in Java is pretty straight forwrd if you use SupportPac MS0B. Just follow the examples and you shouldn't have any trouble.

On the other hand, getting a list of queues from a mainframe queue manager is easy but parsing the reply messages is a pain in the @ss. To get the queue list, send a "plain text" message to the command server's input queue.
i.e. dis ql(*)
This will return a plain text list (one message per queue plus 2 control messages) of all "local queues" on that queue manager. You will have to parse out all of queues attributes.

One more note, you must have the CAF (Client Attachment Feature) installed on the mainframe or else your Java client will not be able to talk to the mainframe queue manager.

later
Roger...
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Inquire on Queue Manager for Queue List
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.