|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
RouteToLabel Question |
« View previous topic :: View next topic » |
Author |
Message
|
pfaulkner |
Posted: Mon Dec 01, 2003 11:52 am Post subject: RouteToLabel Question |
|
|
Master
Joined: 18 Mar 2002 Posts: 241 Location: Colorado, USA
|
I want to be able to route to multiple labels based on the logic in my ESQL but I noticed the routeToLabel node only allows route to first or route to last.
Is there a way to route to multiple paths? |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Dec 01, 2003 12:29 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
As you noticed, you can only route to either the first item in the DestinationList, or the last item in the DestinationList. Each time the RouteToLabel node is executed, it will remove it's destination from the list. So if you have three items in the list, and your flow encounters a RouteToLabel node, the first (or last) item from the list will be removed to leave two items.
You can, however, connect the output from a Label node back to the same (or another) RouteToLabel node, as well as to whatever processing you are doing from the Label. So this gives the illusion of processing two labels at once.
This assumes that your two (or more) destinations have processing that is independant of each other.
But remember that all processing is done in sequence. If a message flow encounters two output paths from the same node, they will be executed in sequence and NOT in parallel. Without using a Flow Order node or a RouteToLabel node, the order will be determined randomly. _________________ I am *not* the model of the modern major general. |
|
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
|
|
|
|