|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
User Defined Variables, Again |
« View previous topic :: View next topic » |
Author |
Message
|
malammik |
Posted: Thu Mar 22, 2007 7:03 am Post subject: User Defined Variables, Again |
|
|
 Partisan
Joined: 27 Jan 2005 Posts: 397 Location: Philadelphia, PA
|
I am running latest toolkit. My ESQL is using several topic names that I would like to be configured at deploy time.
I defined a UDP group at the flow level with a UDP property but cannot find any documentation at all on how to access these properties via ESQL.
I also tried defining a variable using EXTERNAL keyword but it does not show up in bar editor.
Any help from someone who's got this working is greately appreciated. _________________ Mikhail Malamud
http://www.netflexity.com
http://groups.google.com/group/qflex |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Mar 22, 2007 9:37 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
|
Back to top |
|
 |
marcin.kasinski |
Posted: Thu Mar 22, 2007 10:42 am Post subject: Re: User Defined Variables, Again |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
malammik wrote: |
I also tried defining a variable using EXTERNAL keyword but it does not show up in bar editor.
. |
To change UDP in bar you should promote UDP property. _________________ Marcin |
|
Back to top |
|
 |
malammik |
Posted: Thu Mar 22, 2007 3:26 pm Post subject: Re: User Defined Variables, Again |
|
|
 Partisan
Joined: 27 Jan 2005 Posts: 397 Location: Philadelphia, PA
|
marcin.kasinski wrote: |
To change UDP in bar you should promote UDP property. |
I defined a module for my compute node like this.
DECLARE udp1 EXTERNAL CHARACTER;
CREATE COMPUTE MODULE SingleViewPublisher_Compute
DECLARE udp2 EXTERNAL CHARACTER;
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
-- CALL CopyMessageHeaders();
CALL CopyEntireMessage();
DECLARE udp3 EXTERNAL CHARACTER;
................
ie. In three different palces and still when I right click on the compute node, neither udp1, 2 or 3 are the in list of properties which could be promoted. _________________ Mikhail Malamud
http://www.netflexity.com
http://groups.google.com/group/qflex |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Mar 22, 2007 3:49 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
They won't be promotable.
You can't declare them inside the function, so your upd3 is not valid, I believe.
And, again, you have to define them on the Flow as well.
And they won't be properties of any particular NODE, they are properties that are set on the whole flow. So in your BAR file, after making sure you have refreshed the contents, go to the Configure tab, and select the Flow itself, and not any of the individual nodes under it. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
broker_new |
Posted: Fri Mar 23, 2007 2:33 pm Post subject: |
|
|
 Yatiri
Joined: 30 Nov 2006 Posts: 614 Location: Washington DC
|
You to need to follow 3 steps for setting the UDP Properties
1)Go to the MessageFlow window go to the user defined properties and there you can see the Properties there Rightclick on the Basic and add the Property to it .
2)In the ESQL ,with whatever the name you created the property in the messageflow editor delcare that as
DECLARE udp1 EXTERNAL CHARACTER;
3)On the bar File you need to go to the configure tab and set the value for UDP . _________________ IBM ->Let's build a smarter planet |
|
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
|
|
|
|