Hi, We had a scenario where we wanted to move only specific files to a different location (say done using move=done) and keep the remaining exchanges in the same location.
This is the strategy we used to remove stale files for our application to Done location, meanwhile the correct files should remain in the same location. We tried a lot of approaches, but we couldn't separately move (not copy) some files to a different location and retain the rest. The problem we realized is because Camel sets the options like rename, move, delete for all the exchanges for a given route and not on a specific exchange. Finally we created and plugged in a custom ProcessStrategy and replicated Camel's GenericFileRenameProcessStrategy code and tweaked a little for our exchange based needs. The risk we have here is we will lose track of Camel's updates on this code in future. However I strongly feel, that the options should be controllable on an exchange basis too, like lets say setting some property on the exchange.setProperty("SKIP_MOVEMENT", true). This will let us to override route based movement config on the exchange side. I am willing to contribute the code for Camel. Regards, Ravi -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Move-specific-exchanges-ONLY-to-a-different-location-tp5720833.html Sent from the Camel - Users mailing list archive at Nabble.com.