On Wed, Jun 29, 2011 at 3:31 PM, balajiu <[email protected]> wrote: > Hello, > > I have following camel route that picks up file from a directory and process > it. The route looks like as follows. > > from("direct:file://c:///localdir///poller&move=//c:///localdir///archive///${file:name.ext}-${date:now:yyyyMhMdd}" > > > But I want to check for any lock files and delete them in the > localdir/poller location before route starts. >
Its just Java code, so just invoke some java code in the configure() method that cleanup lock files. Notice Camel does this automatic for its own lock files - .camelLock They are automatic deleted on startup. > > The route is configured in the configure method. I am wondering how do I > handle the scenario. Please advise. > > I appreciate your help. > > Thank you, > Balaji > > -- > View this message in context: > http://camel.465427.n5.nabble.com/pre-processing-before-camel-route-starts-tp4535133p4535133.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.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
