no, the 2 route setup should be more like this. from(ftp_endpoint).to(file://<dir>)
this will download the file to directory of your choice then another route would be a directory monitor via file component from("file:<dir>?delete=true") .process ... this will start the file process when the download is complete, and with delete=true, it will delete the file automatically when processing is done. On Mon, Apr 18, 2016 at 3:23 AM, h0mer <mad4c...@gmail.com> wrote: > Yes I read that and understand how to do it. But If I do the FTP with a > localWorkingDirectory, once the route ends, doesn't the file get removed? > > So Shouldn't it be: > > from(ftp_endpoint).to(local_file) > > Then Have another route started up > > from(local_file).split().process().to(kafka_endpoint) > > Then have the last route delete the file upon completion. > > Is this a valid solution? I just figured that my original route (original > post) does all of this behind the scenes when you specify a > "localWorkingDirectory" in the FTP URI? Is this not the case? > > Thanks for the help BTW. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-Large-File-Processing-Issues-tp5781221p5781247.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Omnem crede diem tibi diluxisse supremum.