On Thu, Sep 29, 2011 at 1:18 PM, heinrichheine
<[email protected]> wrote:
> And a general question regarding the wireTap situation:
>
> i found some other locations, e.g. choice where i can not place a wireTap
> inside a when and place a second when afterwards.
>
> Example
>
> .choice()
> .when().xpath("expr")
> .wireTap("log:somewhere")
> .to("direct:here")
> .when() <-------------- this creates a compile error
> .wireTap("log:somwherelese")
> .to("direct:there")
> .endChoice()
>
> Why am i not allowed to use wireTap in this situation?
>
You need to end the wireTap as it has sub configuration now in Camel 2.8 onwards
For example like this:
from("direct:start")
.choice()
.when(body().contains("Camel"))
.wireTap("mock:camel").end()
.when(body().contains("Donkey"))
.wireTap("mock:donkey").copy().end()
.otherwise()
.to("mock:other");
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Where-is-the-handled-method-Migrating-from-2-5-to-2-8-1-tp4852597p4852665.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/