On Wed, Nov 14, 2012 at 1:58 PM, Elezabeth <[email protected]> wrote:
> No .. not like that..
>
> For example : See a route like this..
>
> from("jms:queue:order")
>    .choice()
>       .when(isWombat).to("bean:wombatOrder")
>    .otherwise()
>       .to("bean:miscOrder")
>   * .end();  *
>

That end() is just the end of the choice.

So in XML you do

<route>
  <from ..>
  <choice>
     ...
  </choice>   <!-- this is like the end() in the Java code -->
  <... you can continue here if you want ..>
</route>



> I want this route to be configured in xml ... How can I do this or what i
> should I give instead of *.end()*.
>
> Hope you understood my question.
>
>
>
>
>
>
> -----
> Thanks & Regards
> Elz
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Spridng-DSL-equivqlent-of-end-tp5722712p5722716.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to