Re: Starting method when transfer completes

2013-09-28 Thread Claus Ibsen
You could also take a look at http://camel.apache.org/oncompletion.html On Tue, Sep 24, 2013 at 6:48 PM, Bratislav Stojanovic wrote: > Hi all, > > I'm fetching some data every 30 secs from my FTP server into my local > folder using > a simple rule and that works fine. I would like now to start a

Re: Starting method when transfer completes

2013-09-26 Thread Christian Posta
The file component (ftp derives from it) keeps track of "batch size" and "batch index"... that is.. the number of files it grabbed per poll...you could use those numbers + and aggregator or resequencer or something to determine whether you've processed all the files, then call to a bean: component

Starting method when transfer completes

2013-09-24 Thread Bratislav Stojanovic
Hi all, I'm fetching some data every 30 secs from my FTP server into my local folder using a simple rule and that works fine. I would like now to start a method from one of my classes when (and only if) transfer completes successfully. What is the best way to achieve that? By using .process or? W