camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From piyushbhatt <bhattpiy...@gmail.com>
Subject FTP with 2 files in transaction mode
Date Thu, 09 Aug 2012 07:43:47 GMT
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.

Mime
View raw message