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 » WebSphere Message Broker (ACE) Support » How to get broker name from the broker resource name?

Post new topic  Reply to topic
 How to get broker name from the broker resource name? « View previous topic :: View next topic » 
Author Message
Inforz
PostPosted: Tue Apr 26, 2011 5:40 am    Post subject: How to get broker name from the broker resource name? Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Tue Apr 26, 2011 5:53 am    Post subject: Re: How to get broker name from the broker resource name? Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Tue Apr 26, 2011 5:55 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Be aware that "MB6" is going out of support VERY VERY SOON.

http://www-01.ibm.com/common/ssi/cgi-bin/ssialias?subtype=ca&infotype=an&appname=iSource&supplier=897&letternum=ENUS909-301

So don't do any new development.

There is some access to things like broker name and message flow name and etc. from ESQL in Broker 6.1 and more in Broker v7. You should use one of those.
Back to top
View user's profile Send private message
joebuckeye
PostPosted: Tue Apr 26, 2011 8:45 am    Post subject: Reply with quote

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
View user's profile Send private message
Inforz
PostPosted: Wed Apr 27, 2011 10:10 pm    Post subject: Re: How to get broker name from the broker resource name? Reply with quote

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
View user's profile Send private message
Inforz
PostPosted: Wed Apr 27, 2011 10:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Thu Apr 28, 2011 12:21 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

No, there is not a separate PID for each message flow.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Apr 28, 2011 12:37 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to get broker name from the broker resource name?
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.