camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject Re: Consuming FTP file and deleting after processing
Date Sat, 25 Aug 2007 07:00:06 GMT
On 8/20/07, Nicky Sandhu <> wrote:
> The usecase is like this
> Transfer the file and put it into some queue.
> from("sftp://someserver/somedir/somefile").to("queue:somequeue");
> Then delete it from the server if and only if the above is successful and
> not if it fails.
> How can the above be accomplished?

I've raised a JIRA to track this; hopefully we can add a hook so
file/ftp style components can add a 'delete on successful process'

We might also want to look at reusing the file components
FileProcessStrategy to handle different kinds of 'delete' (e.g. using
a lock file, deleting or moving etc)


View raw message