Hi,

I want to test out filters. I have this route:

<route id="route1">

   <from uri="direct:start" />                                          
   <to uri="bean:compAImpl" />

   <camel:setHeader
headerName="goto"><camel:constant>B</camel:constant></camel:setHeader>

   <camel:choice>

      <when>
           <camel:simple>in.header.goto='B'</camel:simple>
           <to uri="bean:compBImpl" />
      </when>

      <otherwise>
           <to uri="bean:compCImpl" />
      </otherwise>

   </camel:choice>
</route>

It is not working. only C is invoked.

What is wrong?
-- 
View this message in context: 
http://old.nabble.com/correct-use-of-choice-tp27057257p27057257.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to