I just found out that i could put a callback on the exchange with the methdo addOnCompletion. It allows me to close the reader when "onFailure" (or onComplete) happens.
It is the best way to do that ? -- View this message in context: http://camel.465427.n5.nabble.com/free-resources-when-error-happen-splitting-with-custom-method-tp5770573p5770575.html Sent from the Camel - Users mailing list archive at Nabble.com.
