|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
WB-IMB 6.0 - Where am I? |
« View previous topic :: View next topic » |
Author |
Message
|
PeterPotkay |
Posted: Thu Sep 29, 2005 1:48 pm Post subject: WB-IMB 6.0 - Where am I? |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Hursley dudes,
I looked in the announcment letter, and did not see anything about this specifically:
Is there anything in the product that will allow us to officially (no I don't want to use a Cat 2 Support Pack) query something like a MQ namelist or environment variable from inside a flow?
For example, we just implemented a flow that takes MQ in and HTTP out. Well, the destination HTTP IP address is different DEV, QA and PROD. What is the official way to have the same code know to send it to a different address based on the environment it is running in. With MQ its easy, same named remote queue def that the MQ admin points to different QMs in different environments. How to do the same for http?
What the developers currently did is create a URL HOLD queue that is accessed by the MQGET node in the flow. It contains a message that is different in each environment that has the destination URL. At the end of the flow, the message is put back to the hold queue. There has GOT to be a more elegant solution. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
Bill.Matthews |
Posted: Thu Sep 29, 2005 2:11 pm Post subject: |
|
|
 Master
Joined: 23 Sep 2003 Posts: 232 Location: IBM (Retired)
|
One of the new ESQL variable types is EXTERNAL. So, in a Compute node, add the following:
DEFINE Location EXTERNAL Character 'Undefined';
Second, with the Message Flow editor in view, at the bottom there is a second tab called "User Defined Properties". Select that tab. That editor is shown. At the top is the name of the message flow. Right click on that and select Add property. This allows you to enter the name, i.e. Location. You can also change its value.
Third, when the bar is built, use the Configure tab. The User Defined Variables are shown when you click on the message flow name. At this point, change it to PROD, TEST or DEV. Then deploy the bar file.
Note that if you use the mqsideploy function, you can set the value there also.
Now, lets take this one step more. If you define the variable outside of the Compute node's ESQL, ie as part of the Schema - then that variable can be seen (but not changed) by any ESQL based node in the message flow.
Of course, you get to pick the name of the variable.
So, no extra MQGets or MQPuts.
Cheers
Bill
[/quote] _________________ Bill Matthews |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|