Hi The file component in Camel is configured with a starting directory, as documented (see big green box) http://camel.apache.org/file2
So you route should most likely be <camel:from uri="file:data/inbox" /> Then it will pickup any files you put in the inbox directory. On Mon, Sep 10, 2012 at 1:14 PM, gsehgal <gaurav_seh...@yahoo.com> wrote: > Hi, > I did that now my XML looks like: > <camel:camelContext > > <camel:route shutdownRoute="Defer"> > <camel:from uri="file:data/inbox/file" /> > <camel:to uri="file:data/outbox/" /> > </camel:route> > </camel:camelContext> > > Though even now the routes are not started, I am using Camel version: > 2.9.2 and spring version : 3.0.6. That should be fine right? > > Regards, > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Loading-Camel-Context-from-Spring-XML-tp5719025p5719030.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen