|  | 
 
  
    | RSS Feed - WebSphere MQ Support | RSS Feed - Message Broker Support |  
 
  
	|    |  |  
  
	| Inquire on Queue Manager for Queue List | « View previous topic :: View next topic » |  
  	| 
		
		
		  | Author | Message |  
		  | sp01 | 
			  
				|  Posted: Sun Aug 10, 2003 5:43 pm    Post subject: Inquire on Queue Manager for Queue List |   |  |  
		  | Newbie
 
 
 Joined: 10 Aug 2003Posts: 2
 
 
 | 
			  
				| Is there any way to ask the queue manager what queues it is managing? |  |  
		  | Back to top |  |  
		  |  |  
		  | EddieA | 
			  
				|  Posted: Sun Aug 10, 2003 5:48 pm    Post subject: |   |  |  
		  |  Jedi
 
 
 Joined: 28 Jun 2001Posts: 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 |  |  
		  |  |  
		  | sp01 | 
			  
				|  Posted: Sun Aug 10, 2003 7:10 pm    Post subject: |   |  |  
		  | Newbie
 
 
 Joined: 10 Aug 2003Posts: 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 |  |  
		  |  |  
		  | RogerLacroix | 
			  
				|  Posted: Sun Aug 10, 2003 9:21 pm    Post subject: |   |  |  
		  |  Jedi Knight
 
 
 Joined: 15 May 2001Posts: 3265
 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 |  |  
		  |  |  
		  |  |  |  
  
	|    |  | 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
 
 |  |  |  |