Author |
Message
|
Inforz |
Posted: Thu May 12, 2011 5:33 am Post subject: How to know the flow that is listening to a queue |
|
|
 Centurion
Joined: 15 Apr 2011 Posts: 139 Location: Chennai, India
|
Hi,
the linux server is has MB7 and MQ7 in which a queue has input count as 2. So with a queue status I get to know the process ids (both are same) and from which I get to know there are DataFlowEngine (msg flows).
So now how can I know which flows are listening to the queue.
(this is a kinda reverse engineering concept to know the flow names that are listening to the queue)
Pls suggest the methods other than checking all the flows ( in UI, broker toolkit) to know which flow is having the input queue as the expected queue as there are hell a lot of flows.
Thanks, |
|
Back to top |
|
 |
mqjeff |
Posted: Thu May 12, 2011 5:41 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Well, sorry, but you are going about this backwards.
You shouldn't deploy anything without knowing before hand what queue it will listen to.
If you really somehow don't know this, and don't want to bother doing things like reviewing the properties of the flow on the administrative view (rather than actually looking at the .msgflow file!), then you can enable user trace on the EG and send a message to a queue. Then look at the user trace to see what flow read the message.
But again, this is the wrong way to do it. You should know before hand what queues will be used, or enforce what queues will be used by overriding the bar file. |
|
Back to top |
|
 |
fschofer |
Posted: Thu May 12, 2011 7:19 am Post subject: |
|
|
 Knight
Joined: 02 Jul 2001 Posts: 524 Location: Mainz, Germany
|
Hi,
change to queue to get disabled an check which message flow starts complaining.
Regards
Frank |
|
Back to top |
|
 |
Inforz |
Posted: Tue May 17, 2011 6:18 pm Post subject: |
|
|
 Centurion
Joined: 15 Apr 2011 Posts: 139 Location: Chennai, India
|
Hi thanks for the info. But, sorry I didnt get you. Can you please explain how a msg flow complaints if its not able to identify the queue.
Thanks, |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue May 17, 2011 8:03 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Inforz wrote: |
Hi thanks for the info. But, sorry I didnt get you. Can you please explain how a msg flow complaints if its not able to identify the queue.
Thanks, |
It complains by writing a message into the log.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
smdavies99 |
Posted: Tue May 17, 2011 9:16 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
fjb_saper wrote: |
Inforz wrote: |
Hi thanks for the info. But, sorry I didnt get you. Can you please explain how a msg flow complaints if its not able to identify the queue.
Thanks, |
It complains by writing a message into the log.  |
The logged messages will mention the queue Name and give an MQRC = 2016.
simples. Try it and see for yourself. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
davecrighton |
Posted: Sun May 22, 2011 6:17 am Post subject: |
|
|
Novice
Joined: 13 Jun 2007 Posts: 12
|
I think you *might* be able to get this info back using the CMP API. Im on my home PC so dont have a broker to check. Its worth having a poke around in the CMP exerciser to see if you can find the deployed flow cmf. |
|
Back to top |
|
 |
|