On Sat, Sep 15, 2012 at 2:43 AM, e0richt <[email protected]> wrote:
> ok, but I want to use the whole gamut of what is possible in camel during
> runtime.
> I have tried using the intermediate object shown by Eclipse but that
> definately did not work...
>
>
> given this:
>
>     from("....)
>         .to("......)
>         .filter("....")
>         .choice("....);
>
>
> there must be a way to do this:
>
>      objectX x = from("....");
>
>      x.to("......");
>      x.filter(".....");
>      x.choice("....");
>
>
> I just need to know what that "object" happens to be...
>

The Java DSL returns an object (ProcessorDefinition, RouteDefiniton) etc.

And you can keep a reference to that. And then continue with the DSL
using that instance.
For example from within your for loop.



>
>
>
>
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/I-want-to-build-a-camel-route-programmatically-tp5719387p5719400.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.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to