You don't have to do the loop yourself.  You can use a Pipeline
processor, as described at

http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/processor/Pipeline.html

Don

On Fri, Sep 14, 2012 at 5:14 PM, Christian Müller
<christian.muel...@gmail.com> wrote:
> Checkout this link: http://camel.apache.org/running-camel-standalone.html
>
> Best,
> Christian
>
> On Fri, Sep 14, 2012 at 6:50 PM, e0richt <e0ri...@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.
>>
>
>
>
> --

Reply via email to