Hi Can you be more specific, only once when the route is starting up, or once before every file?
You can use route policy / event notifier or use some of the file processing strategy to plugin and get notifications depending on needs. On Wed, May 20, 2015 at 10:12 PM, Kondalarv <kondala.sou...@gmail.com> wrote: > > Here is camel route for file consumer that picks up file from a directory > and process it. > > (file:/app/test/inbound?readLock=changed&maxMessagesPerPoll=1&preMove=wip&initialDelay=5000&delay=1000&autoCreate=false&move=done/${date:now:yyyy}/${file:name}.${date:now:yyyyMMddhhmmss}).processRef("fileWatcherConsumerProcesser"); > > > But I want to execute pre processing logic once File Consumer started > recognizing the file in folder means still producer is writing the file. > > How do I handle the scenario, I appreciate your help. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-File-Consumer-Pre-processing-steps-tp5767348.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/