camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem jiang <>
Subject Re: FTP with 2 files in transaction mode
Date Fri, 10 Aug 2012 06:33:55 GMT
You can implement a GenericFileProcessStrategy[1] to delete the .xml and img if these two files
are processed.


Willem Jiang

Web: (
Blog: ( (English)
 ( (Chinese)
Twitter: willemjiang 
Weibo: willemjiang

On Thursday, August 9, 2012 at 3:43 PM, piyushbhatt wrote:

> Hi,
> We have a requirement where we have a set of 2 files which should be pushed
> in an order and also either both should go or none should go. The file names
> are same except the .xml or .img in the end.
> We have deployed Camel as a windows service. We have implemented a custom
> file processing strategy which checks if both files are available and then
> pushes the files in the order. However due to service restart sometimes the
> first file gets pushed and another file is not pushed at the shutdown time.
> Once the service starts again, it checks for the pair of files and thus
> excludes the remaining file of the pair.
> We are using idempotent repository to store what files have been pushed
> Is there any way where we can make this whole thing transactional so that
> either both files are pushed or none of them is pushed so that at restart
> again both files are available for pushing?
> Regards
> Piyush
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at (

View raw message