|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
who can give me a clearly explain about the two properities, |
« View previous topic :: View next topic » |
Author |
Message
|
Jonasli |
Posted: Thu Dec 23, 2004 12:59 am Post subject: who can give me a clearly explain about the two properities, |
|
|
Apprentice
Joined: 24 Apr 2003 Posts: 34 Location: Beijing
|
dear all,
i have a unclearly understand about the two properities "route to first" and "route to last(the default)" of RouteToLabel Node in MB,
and i try to read the online document to understand it, but failiure,
who can give me clearly explasion or give me a small demo to demostrate it?
thanks very much. |
|
Back to top |
|
 |
lillo |
Posted: Thu Dec 23, 2004 1:11 am Post subject: |
|
|
Master
Joined: 11 Sep 2001 Posts: 224
|
|
Back to top |
|
 |
JT |
Posted: Thu Dec 23, 2004 6:48 am Post subject: |
|
|
Padawan
Joined: 27 Mar 2003 Posts: 1564 Location: Hartford, CT.
|
See if this explanation helps:
Let's say the following RouterList destinations are defined in a Compute node prior to the RouteToLabel node:
Code: |
SET OutputLocalEnvironment.Destination.RouterList.DestinationData[1].labelname = 'LabelOne';
SET OutputLocalEnvironment.Destination.RouterList.DestinationData[2].labelname = 'LabelTwo';
SET OutputLocalEnvironment.Destination.RouterList.DestinationData[3].labelname = 'LabelThree';
SET OutputLocalEnvironment.Destination.RouterList.DestinationData[4].labelname = 'LabelFour';
|
The RouteToLabel node reads the destination list that is passed to it, and propogates the message to those destinations that are identified in the LocalEnvironment variable. The order in which the RouteToLabel node works through the list of destinations is determined by the Mode parameter.
When the Mode parameter on the RouteToLabel is set to "Route to First", the destinations are extracted starting with the first occurrence of the labelname (LabelOne), followed by the second occurrence, if there is one present (in this case, it's LabelTwo), and so forth.
When the Mode parameter on the RouteToLabel is set to "Route to Last", the destinations are extracted starting with the last occurrence of the labelname (LabelFour), followed by the previous occurrence, if there is one present (in this case, it's LabelThree), and so forth. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Dec 23, 2004 6:50 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
But each pass through a RouteToLabel node will only go to ONE label in the list. So if you want to go to ALL labels in the list, you must pass a RouteToLabel node for EACH label. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Jonasli |
Posted: Sun Dec 26, 2004 8:09 pm Post subject: thanks, i think i am clealry, i will try it by testing |
|
|
Apprentice
Joined: 24 Apr 2003 Posts: 34 Location: Beijing
|
dear all, thanks very much^_^ |
|
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
|
|
|
|