Hi Yeah sure you can do a route that runs only for a while. There is ways to stop a route when there is no more files in a batch.
You can google or search these user forums as this has been debated before. On Mon, Sep 1, 2014 at 6:38 PM, samnik60 . <monishs...@gmail.com> wrote: > Hi guys, > I am trying to use camel for the following use case, > > Take all files in a hdfs directory -> transfer the files to a ftp server > > I want the route to execute only till all the files in the directory are > transfered. I have looked at camel-hdfs2 and camel-ftp component , but it > seems to give me a > polling logic. > > Is camel a good fit for this use case or should i use hdfs api and java > ftp api for this. > > Any example or suggestions on which way to proceed will be great. > > Regards, > R.Monish -- 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/