|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to get QM list |
« View previous topic :: View next topic » |
Author |
Message
|
wangld |
Posted: Wed Oct 04, 2006 11:25 pm Post subject: How to get QM list |
|
|
Novice
Joined: 27 Sep 2006 Posts: 13
|
Hi there,
I'm a newbie.
I wonder how to get QM list without a connection to a QM (like IBM Websphere MQ Explorer).
There is any thing like a system queue manager hold these info?
Thx. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Oct 04, 2006 11:52 pm Post subject: Re: How to get QM list |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
wangld wrote: |
I wonder how to get QM list without a connection to a QM (like IBM Websphere MQ Explorer).
There is any thing like a system queue manager hold these info?
|
If there was a system queue manager, wouldn't you still need to connect to it to obtain the information....
If you want a list of all MQ objects on a queue manager (like the view in Explorer) then you can obtain the information from the queue manager programatically via PCF commands (there's a manual & too much information to repeat here!). If you want a list of all queue managers, that's stored in a platform specific way & you don't mention a platform. One simple method (and not necessarially the best) is to itterate through the sub-folders of qmgrs in your file system to obtain the names.
May I enquire why you'd trying to avoid Explorer? It's not a bad wheel and there's no immediate need to reinvent it I can see straight off.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
wangld |
Posted: Thu Oct 05, 2006 1:21 am Post subject: |
|
|
Novice
Joined: 27 Sep 2006 Posts: 13
|
Thx Victor,
By your advice, I've found can get QM list in registry (Windows platform).
I avoid Explorer because I'm writing a light Explorer version :p that prevent user can't change system info like deleting, altering... just only in running, starting and stopping specify services.
Thx again ^^. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Oct 05, 2006 1:35 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Be aware that your method (obviously) only works on Windows. The method I suggested works on any platform.
Having said that, your method works well on Windows!
Interested by your app - starting / stopping services requires administraor / mqm level authority. Who needs that, but can't change QM attributes or definitions?
Just interested. It's your wheel; you roll it how you want!  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
markt |
Posted: Thu Oct 05, 2006 2:28 am Post subject: |
|
|
 Knight
Joined: 14 May 2002 Posts: 508
|
|
Back to top |
|
 |
wangld |
Posted: Thu Oct 05, 2006 6:34 pm Post subject: |
|
|
Novice
Joined: 27 Sep 2006 Posts: 13
|
markt wrote: |
other than z/OS, dspmq |
Oh yeah ^^ |
|
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
|
|
|
|