On 8/20/07, Nicky Sandhu <[EMAIL PROTECTED]> 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' hook. https://issues.apache.org/activemq/browse/CAMEL-123 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) https://issues.apache.org/activemq/browse/CAMEL-124 -- James ------- http://macstrac.blogspot.com/
