Author |
Message
|
chanduy9 |
Posted: Tue Apr 17, 2012 8:44 am Post subject: How to check Message flow peroperties after deploying |
|
|
Disciple
Joined: 28 Nov 2001 Posts: 177 Location: USA
|
Hi,
How do i get the Message flow properties after delploying the flow to execution group (not from mqsireadbar). I have tried mqsilist with -d 2 option, but the command is not returning the Queues used, DSN, urls and other properties.
Thanks,
Chandra. _________________ Chandra,
IBM WebSphere MQ Certified. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Apr 17, 2012 9:11 am Post subject: Re: How to check Message flow peroperties after deploying |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
chanduy9 wrote: |
How do i get the Message flow properties after delploying the flow to execution group (not from mqsireadbar). |
This is another really good reason why you should keep deployed bar files safely in your source code management system or other repository. Others include (but are not limited to) the need to build new broker instances for scaling or recovery.
Alternatively you could add a mqsireadbar to the script you use to deploy bar files and store that output.
Depends really on how long after deployment you mean; do you want to check the values immediately post deployment, or check 6 months later as part of problem resolution?
chanduy9 wrote: |
I have tried mqsilist with -d 2 option, but the command is not returning the Queues used, DSN, urls and other properties. |
That does show UDPs. I'm not aware of any other method (which is not to say there isn't one) and someone who knows more about the admin APIs will be along in a moment. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Apr 17, 2012 7:15 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
I thought the java configmgrAPIExerciser would allow you to get that information from the EG and the deployed flow...
Have fun looking at the programming model and writing your own...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
saurabh867 |
Posted: Tue Apr 17, 2012 10:09 pm Post subject: |
|
|
Voyager
Joined: 13 Jun 2010 Posts: 78
|
Look for the javadoc of MessageFlowProxy class and check what all methods you have there.
This should give you the properties of your deployed message flow.
Regards,
Saurabh |
|
Back to top |
|
 |
kash3338 |
Posted: Tue Apr 17, 2012 10:44 pm Post subject: |
|
|
Shaman
Joined: 08 Feb 2009 Posts: 709 Location: Chennai, India
|
You can also check with mqsireportproperties command. You will be able to get the properties of each node deployed in a particular execution group. |
|
Back to top |
|
 |
mqmatt |
Posted: Wed Apr 18, 2012 5:55 am Post subject: |
|
|
 Grand Master
Joined: 04 Aug 2004 Posts: 1213 Location: Hursley, UK
|
I second the comments on the CMP and mqsireportproperties.
Just bear in mind that message flows are a lot more dynamic than they used to be. Configurable services, LE overrides, registry lookups etc. all mean that what you configure at deployment time is not necessarily what the broker is working with.
If you want information on what the broker is *actually* connected to, then look at resource statistics (V7/V8) or the activity log (V8). |
|
Back to top |
|
 |
ganesh |
Posted: Wed Apr 18, 2012 6:50 am Post subject: |
|
|
Master
Joined: 18 Jul 2010 Posts: 294
|
Quote: |
I have tried mqsilist with -d 2 option, but the command is not returning the Queues used, DSN, urls and other properties.
|
Write a JAVA program and use the MessageFlowProxy class with the getQueues() method.
Code: |
MessageFlowProxy elements;
String [] queues = elements.getQueues();
|
You will also be able to look up the queue names in CMP API exerciser. |
|
Back to top |
|
 |
zpat |
Posted: Wed Apr 18, 2012 7:28 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Doesn't the MBX show this sort of stuff (flow properties)? |
|
Back to top |
|
 |
ganesh |
Posted: Wed Apr 18, 2012 8:29 am Post subject: |
|
|
Master
Joined: 18 Jul 2010 Posts: 294
|
zpat wrote: |
Doesn't the MBX show this sort of stuff (flow properties)? |
Yes we can see those properties in MB explorer. |
|
Back to top |
|
 |
|