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 » who can give me a clearly explain about the two properities,

Post new topic  Reply to topic
 who can give me a clearly explain about the two properities, « View previous topic :: View next topic » 
Author Message
Jonasli
PostPosted: Thu Dec 23, 2004 12:59 am    Post subject: who can give me a clearly explain about the two properities, Reply with quote

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
View user's profile Send private message Yahoo Messenger
lillo
PostPosted: Thu Dec 23, 2004 1:11 am    Post subject: Reply with quote

Master

Joined: 11 Sep 2001
Posts: 224

There is chapter covering the RouteToLabel node in the redbook "Developing solutions in WebSphere MQ Integrator". Visit http://publib-b.boulder.ibm.com/abstracts/sg246579.html?Open to find the redbook.

Regards,[/url]
_________________
Lillo
IBM Certified Specialist - WebSphere MQ
Back to top
View user's profile Send private message
JT
PostPosted: Thu Dec 23, 2004 6:48 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Thu Dec 23, 2004 6:50 am    Post subject: Reply with quote

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
View user's profile Send private message
Jonasli
PostPosted: Sun Dec 26, 2004 8:09 pm    Post subject: thanks, i think i am clealry, i will try it by testing Reply with quote

Apprentice

Joined: 24 Apr 2003
Posts: 34
Location: Beijing

dear all, thanks very much^_^
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » who can give me a clearly explain about the two properities,
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.