Author |
Message
|
Inforz |
Posted: Tue Apr 26, 2011 5:40 am Post subject: How to get broker name from the broker resource name? |
|
|
 Centurion
Joined: 15 Apr 2011 Posts: 139 Location: Chennai, India
|
Hi,
In MB6,
From database or any other source how can I know the message flow name with the use of the resourcename field of the brokerresources table?
For example I can get the message flow name that is currently running in the following form.
mqsi 1506 1447 0 Mar05 ? 00:00:07 DataFlowEngine WBRK_STAR a7613d89-2c01-0000-0080-a1f459a9691b default 0
where the message flow should be a7613d89-2c01-0000-0080-a1f459a9691b.
So with this how can I get the message flow name.
Thanks, |
|
Back to top |
|
 |
Vitor |
Posted: Tue Apr 26, 2011 5:53 am Post subject: Re: How to get broker name from the broker resource name? |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Inforz wrote: |
So with this how can I get the message flow name.
|
Why would you want to get the name of the message flow from inside the running flow? What's the requrement (see here for a recent and potentially useful thread on a similar topic).
What are you trying to achieve here? Perhaps with knowledge of your requirement we can suggest an alternative? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Apr 26, 2011 5:55 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
joebuckeye |
Posted: Tue Apr 26, 2011 8:45 am Post subject: |
|
|
 Partisan
Joined: 24 Aug 2007 Posts: 365 Location: Columbus, OH
|
Quote: |
mqsi 1506 1447 0 Mar05 ? 00:00:07 DataFlowEngine WBRK_STAR a7613d89-2c01-0000-0080-a1f459a9691b default 0 |
This looks a lot like the output from a AIX 'ps' command.
And I think you are working under a mistaken assumption if you think 'a7613d89-2c01-0000-0080-a1f459a9691b' has anything to do with a specific message flow.
As far as I know that value is the GUID for the execution group (in this case default).
From my experience you will find a directory with that name under the /var/mqsi/components/<broker name> on your AIX server.
From your example above it would be /var/mqsi/components/WBRK_STAR/a7613d89-2c01-0000-0080-a1f459a9691b. |
|
Back to top |
|
 |
Inforz |
Posted: Wed Apr 27, 2011 10:10 pm Post subject: Re: How to get broker name from the broker resource name? |
|
|
 Centurion
Joined: 15 Apr 2011 Posts: 139 Location: Chennai, India
|
Vitor wrote: |
Inforz wrote: |
So with this how can I get the message flow name.
|
Why would you want to get the name of the message flow from inside the running flow? What's the requrement (see here for a recent and potentially useful thread on a similar topic).
What are you trying to achieve here? Perhaps with knowledge of your requirement we can suggest an alternative? |
Below is the related data:
Currently there is a queue,Q1, which has input count as two. After doing a qstatus I got to know that two 'DataFlowEngine's are accessing the queue(with inquire(yes) ) with their corresponding PIDs. So I need to know the flow names.
What I have quoted in my first post is the output of a ps -ef|grep <pid>
So I get the flowname in that form, from which I need to know the flow's alphabetical name. <Any other methods for knowing the flow name with the above data are invited>
After knowing the flowname I need to stop those flows so that the no app is listening to the queue.
FYI, this is a linux 32bit SUSE environment.
Thanks, |
|
Back to top |
|
 |
Inforz |
Posted: Wed Apr 27, 2011 10:14 pm Post subject: |
|
|
 Centurion
Joined: 15 Apr 2011 Posts: 139 Location: Chennai, India
|
joebuckeye wrote: |
Quote: |
mqsi 1506 1447 0 Mar05 ? 00:00:07 DataFlowEngine WBRK_STAR a7613d89-2c01-0000-0080-a1f459a9691b default 0 |
This looks a lot like the output from a AIX 'ps' command.
And I think you are working under a mistaken assumption if you think 'a7613d89-2c01-0000-0080-a1f459a9691b' has anything to do with a specific message flow.
As far as I know that value is the GUID for the execution group (in this case default).
From my experience you will find a directory with that name under the /var/mqsi/components/<broker name> on your AIX server.
From your example above it would be /var/mqsi/components/WBRK_STAR/a7613d89-2c01-0000-0080-a1f459a9691b. |
Yes, this is the output of a ps command. The environment is Linux. Thanks for the info that it is a GUID of an exegrp. So how can I find the exact flow name with that PID.
I guess there are seperate PIDs for a broker, exegrp and a flow. Pls let me know your suggestions.
Thanks, |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Apr 28, 2011 12:21 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
No, there is not a separate PID for each message flow. |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Apr 28, 2011 12:37 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
You need to use the toolkit or CMP-API Exerciser and look at all the flows being deployed across all execution groups. Maybe your flow has been deployed twice, once of those into the "wrong" execution group...
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|