Author |
Message
|
jugadu |
Posted: Tue Mar 18, 2008 1:02 am Post subject: WMB : Destination List.. |
|
|
Apprentice
Joined: 04 Dec 2007 Posts: 30
|
Hi,
I am using sample flow like this.
MQInput ---> ComputeNode-->MQOuptput
I am using the Destination list for sending the message to the multiple Queues.
My concern is if i want to add a new queue name every time i have to change the code.....is it possible to include the other queue name , without modifying the ESQL code ? like using the UDP params. |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Tue Mar 18, 2008 1:27 am Post subject: Re: WMB : Destination List.. |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
Without testing
IF udp_attr1 IS NOT NULL THEN
SET OutputLocalEnvironment.Destination.MQ.DestinationData[i++].queueName= udp_attr1;
END IF;
IF udp_attr2 IS NOT NULL THEN
SET OutputLocalEnvironment.Destination.MQ.DestinationData[i++].queueName= udp_attr2;
END IF;
IF udp_attr3 IS NOT NULL THEN
SET OutputLocalEnvironment.Destination.MQ.DestinationData[i++].queueName= udp_attr3;
END IF;
IF …
Where :
udp_attrX = udp parameters. _________________ Marcin |
|
Back to top |
|
 |
AkankshA |
Posted: Tue Mar 18, 2008 1:31 am Post subject: |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
hmm.... i fear we can not..
you can if the total number of consumers getting the msg is fixed...
else how ll we define variable UDP  _________________ Cheers |
|
Back to top |
|
 |
AkankshA |
Posted: Tue Mar 18, 2008 1:33 am Post subject: |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
one lil dirty logic is ..
have one UDP for destination list
separate all the destinations by some delimiter say ;
build env tree
and create destination list _________________ Cheers |
|
Back to top |
|
 |
jugadu |
Posted: Tue Mar 18, 2008 2:49 am Post subject: WMB : Destination List.. |
|
|
Apprentice
Joined: 04 Dec 2007 Posts: 30
|
thanks for ur reply...
how can i use one UDP for destination List....... |
|
Back to top |
|
 |
AkankshA |
Posted: Tue Mar 18, 2008 2:52 am Post subject: |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
as i mentioned earlier..
separate all the destinations by some delimiter say ; or ,
accept this in eSQL and extract each destination from the UDP
create destination list from the extracted destinations _________________ Cheers |
|
Back to top |
|
 |
jugadu |
Posted: Tue Mar 18, 2008 3:04 am Post subject: WMB : Destination List.. |
|
|
Apprentice
Joined: 04 Dec 2007 Posts: 30
|
Thanks a lot...
i will try with this method...... |
|
Back to top |
|
 |
|