Routing SlipThe Routing Slip
ExampleThe following route will take any messages sent to the Apache ActiveMQ from("activemq:SomeQueue").routingSlip();
Messages will be checked for the existance of the "routingSlipHeader" header. The value of this header should be a comma-delimited list of endpoint URIs you wish the message to be routed to. The Message will be routed in a pipeline fashion (i.e. one after the other). Configuration optionsHere we set the header name and the URI delimiter to something different. Using the Fluent Builders from("direct:c").routingSlip("aRoutingSlipHeader", "#"); Using the Spring XML Extensions <camelContext id="buildRoutingSlip" xmlns="http://activemq.apache.org/camel/schema/spring"> <route> <from uri="direct:c"/> <routingSlip headerName="aRoutingSlipHeader" uriDelimiter="#"/> </route> </camelContext> Further ExamplesFor further examples of this pattern in use you could look at the routing slip test cases AvailabilityThis pattern is available as of Camel version 1.3. Using This PatternIf you would like to use this EIP Pattern then please read the Getting Started, you may also find the Architecture useful particularly the description of Endpoint and URIs. Then you could try out some of the Examples first before trying this pattern out. |
