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 » User Defined Variables, Again

Post new topic  Reply to topic
 User Defined Variables, Again « View previous topic :: View next topic » 
Author Message
malammik
PostPosted: Thu Mar 22, 2007 7:03 am    Post subject: User Defined Variables, Again Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
jefflowrey
PostPosted: Thu Mar 22, 2007 9:37 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You need to do both - define it in the flow editor, and then declare it in ESQL using External.

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ak01015_.htm
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Thu Mar 22, 2007 10:42 am    Post subject: Re: User Defined Variables, Again Reply with quote

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
View user's profile Send private message Visit poster's website
malammik
PostPosted: Thu Mar 22, 2007 3:26 pm    Post subject: Re: User Defined Variables, Again Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
jefflowrey
PostPosted: Thu Mar 22, 2007 3:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
broker_new
PostPosted: Fri Mar 23, 2007 2:33 pm    Post subject: Reply with quote

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

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » User Defined Variables, Again
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.