camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller <christian.muel...@gmail.com>
Subject Re: I want to build a camel route programmatically...
Date Fri, 14 Sep 2012 21:14:13 GMT
Checkout this link: http://camel.apache.org/running-camel-standalone.html

Best,
Christian

On Fri, Sep 14, 2012 at 6:50 PM, e0richt <e0richt@yahoo.com> wrote:

> Hi
>
>
> I am newbie with Camel and it seems to be very powerful framework. One
> thing
> that I haven't found out yet is that how can you create routes
> programmatically?
>
> I want to do something like this:
>
> camel = new DefaultCamelContext();
>
>  camel.addRoutes(new RouteBuilder() {
>            @Override
>            public void configure() throws Exception {
>
>                from("file:C:\\FtpTestFolders\\FtpOut?delete=true")
>                        .setHeader(Exchange.FILE_NAME,
> constant("TestiPrkl.txt"));
>                for (int i=0; i<processorArrayList.length; i++) {
>                        .processor(processorArrayList.get(i));
>                }
>                .to("file:C:\\FtpTestFolders\\FtpError");
>             }
>         });
>
> where can I find an example doing this?
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/I-want-to-build-a-camel-route-programmatically-tp5719387.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



--

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message