camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem jiang <willem.ji...@gmail.com>
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.

[1]http://camel.apache.org/file2.html#File2-UsingGenericFileProcessStrategy 

-- 
Willem Jiang

FuseSource
Web: http://www.fusesource.com (http://www.fusesource.com/)
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)
          http://jnn.javaeye.com (http://jnn.javaeye.com/) (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: http://camel.465427.n5.nabble.com/FTP-with-2-files-in-transaction-mode-tp5717051.html
> Sent from the Camel - Users mailing list archive at Nabble.com (http://Nabble.com).




Mime
View raw message