Wire TapThe Wire Tap
The following example shows how to route a request from an input queue:a endpoint to the wire tap location queue:tap it is received by queue:b Using the Fluent Builders RouteBuilder builder = new RouteBuilder() { public void configure() { from("seda:a").multicast().to("seda:tap", "seda:b"); } }; Using the Spring XML Extensions <camelContext id="camel" xmlns="http://activemq.apache.org/camel/schema/spring"> <route> <from uri="seda:a"/> <multicast> <to uri="seda:tap"/> <to uri="seda:b"/> </multicast> </route> </camelContext> Further ExampleFor another example of this pattern in use you could look at the wire tap test case 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. |
