This content has been marked as final.
Show 3 replies
-
1. Re: Can transaction management handle FTP Rollback
davsclaus Nov 21, 2011 12:42 PM (in response to ask4ralph_rokochu)If you do skip the intermediate queue, and do
Then if any error calling the soap, the FTP can "rollback".
If you use a queue in between, then the FTP will "commit" if the message can safely be sent to the queue.
-
2. Re: Can transaction management handle FTP Rollback
ask4ralph_rokochu Nov 23, 2011 6:55 AM (in response to davsclaus)Thanks.
Unfortunately the message has to pass through the queue.
I ended up using a manual roll-back strategy by setting noop=true and deleting the file with a processor- using the "CamelFileName" if the soap request is successful.
-
3. Re: Can transaction management handle FTP Rollback
davsclaus Nov 23, 2011 7:24 AM (in response to ask4ralph_rokochu)Yeah good idea, as that would be your choice then.
You can also use onCompletion and filter it to trigger on failure only
http://camel.apache.org/oncompletion.html
The Camel in Action book, chapter 9, section 9.5 has more details about this as well.