camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Consuming FTP file and deleting after processing
Date Sat, 25 Aug 2007 07:00:06 GMT
On 8/20/07, Nicky Sandhu <nickysandhu@hotmail.com> 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/

Mime
View raw message