Author |
Message
|
kirank |
Posted: Thu Jun 10, 2004 5:37 am Post subject: Broker Queue manager name in a compute node |
|
|
 Centurion
Joined: 10 Oct 2002 Posts: 136 Location: California
|
Hi All,
I have a message flow that can run on two brokers on two separate machines. At run time I want to know the name of the queue manager attached to the broker within a compute node. What are the different options to get this?
Thanks
Kiran |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Jun 10, 2004 5:43 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
There is basically one and only one option.
A plug-in node. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
kirank |
Posted: Thu Jun 10, 2004 6:08 am Post subject: |
|
|
 Centurion
Joined: 10 Oct 2002 Posts: 136 Location: California
|
Even in 5.0 there is no system variable or a some message tree that can capture this?
Thanks
Kiran |
|
Back to top |
|
 |
JT |
Posted: Thu Jun 10, 2004 6:15 am Post subject: |
|
|
Padawan
Joined: 27 Mar 2003 Posts: 1564 Location: Hartford, CT.
|
Now that it has been upgraded to v5 and removed from the "withdrawn" list of supportpacs you could look at using the IA06 Get all environment variables Plug-In supportpac.
On each broker server set an environment variable, say WBIMBQMGR, to the queue manager name that supports that particular broker. Within your message flow exercise the Get all environment variables node and subsequently query the new ENV tree (Root.ENV.WBIMBQMGR) in a compute/filter node to determine the queue manager name.
This scenario no longer works for us as our configuration now has each broker server supporting multiple brokers, thus on any given broker server the message flows that span multiple brokers would retrieve the same queue manager value. Since you have the brokers running on separate servers this limitation doesn't apply to you. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Jun 10, 2004 6:21 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
JT -
For your situation, you might look at the LDAP plug-in to augment your flow with an LDAP value selected based on the broker name.
But, for Kirank - as far as I know this has not changed for version 5. But consult your documentation! _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
kirank |
Posted: Thu Jun 10, 2004 6:26 am Post subject: |
|
|
 Centurion
Joined: 10 Oct 2002 Posts: 136 Location: California
|
I have separate Broker databases for each of the two brokers. Can I get the queue manager name from any of the tables within the broker database?
I don't want to go into implementing Plugin node so trying to explore other options.
Thanks
Kiran |
|
Back to top |
|
 |
kirani |
Posted: Thu Jun 10, 2004 9:58 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Well, other option is risky. What happens if IBM changes the table schema with next CSD release? It'll be simple to write a plug-in node to get queue manager name at runtime. It's one function call. Please search in this forum and you will find references to that function. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
EddieA |
Posted: Thu Jun 10, 2004 11:10 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Or think about your design, and why you actually need (or more likely think you need) the QM name.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
|