Checkout this link: http://camel.apache.org/running-camel-standalone.html
Best, Christian On Fri, Sep 14, 2012 at 6:50 PM, e0richt <[email protected]> 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. > --
