Hi

Yeah use the multicast in Camel 1.x acts like a wiretap
http://camel.apache.org/wire-tap.html

     from("jbi:service:http://asb.net/RouterService";)
      .process(populateRouteEndpointHeaderProcessor)
      .multicast().to("jbi:service:http://asb.net/AuditService";, "direct:foo");

from("direct:foo").recipientList(header("route-endpoint"));


Notice how I use the "direct:foo" as a indirection to be able to
multicast to it so we can route the messages using the reciepient list
EIP
You can of course use any name of choice than foo.


On Tue, Aug 4, 2009 at 2:58 PM, Frederic Tuttle<[email protected]> wrote:
> Greetings,
>
> I would like to use the new wireTap() DSL function in Camel 2.0, but that
> version is not yet integrated into Servicemix.
> How would I accomplish the same thing using Camel 1.6 Java DSL.
> I would like to send incoming copies of messages (in & out) to an audit
> service endpoint (InOnly MEP).
>
> This is what I have now:
>
>     from("jbi:service:http://asb.net/RouterService
> ").process(populateRouteEndpointHeaderProcessor).recipientList(header("route-endpoint"));
>
> I would like to record incoming requests and want to try this:
>
>     from("jbi:service:http://asb.net/RouterService
> ").process(populateRouteEndpointHeaderProcessor).wireTap(jbi:service:
> http://asb.net/AuditService).recipientList(header("route-endpoint"));
>
> If I used multicast method, what else do I need to do ?
>
> Any suggestions ?
>
> Thanks.
>   -FT
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to