You can have a look at http://commons.apache.org/proper/commons-transaction/ and possibly my adaption into a spring PlatformTransactionManager of it: https://github.com/davidkarlsen/Commons-Transaction-Spring-Integration
2015-01-23 17:35 GMT+01:00 arnoldmad <[email protected]>: > Hi ! > > I have a simple application that contains of 2 parts. a HttpSender > application that polls a local directory and should send the files via http > to another application (HttpReceiver) that will write the files again to > the > disk. > > Here are the 2 routes: > Sender: > > from("file:in?noop=false") > .to("http4:localhost:4711/receiver"); > > Receiver: > > from("jetty:http://localhost:4711/receiver") > .to("file:out"); > > > My issue is that the transfer is done via the internet end that the > connection drops and I get incomplete files on the receiver side. > What do I need to do on my routes to make this a "transaction" so that if > an > exception / incomplete transfer occures the incomplete files are getting > deleted on the out folder and the sender gets notified to retransmit the > file ? > > Thanks for your help > > yours > > Arnold > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Rollback-Transactions-for-File-operations-tp5762065.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- -- David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen
