File is 0 bytes after FTP transfer (in some cases)

2014-03-07 Thread toxels87
I have a route where files are downloaded from aan FTP endpoint, to a local folder. In some cases, the incoming file is 0 bytes, while the file on the FTP server is not empty. Can you think of any reasons why the file transferred is empty? my code: CronScheduledRoutePolicy policy = new CronS

Suspend route after aggregator is complete

2014-03-06 Thread toxels87
Hi, I have a route that gets a list of txt files from one folder, zips the batch of files with an aggregator and then sends this zipfile over FTP to the endpoint. The schedule is controlled by a cron trigger and should fire every 5 minutes. The problem is that once the cron has triggered, the ro