Hi You could do onCompletion().onFailureOnly() and in the same route as you do the message history route the message to your error destination. This of course also means that you have to remove the "moveFailed" option.
from("file:in?move=archive/${date:now:yyyyMMdd}/${file:name}") .onCompletion().onFailureOnly() .wireTap("file:failed/${file:name.noext}-${date:now:yyyyMMddHHmmssSSS}.${file:ext}") .process(new FileHistoryProcessor())* .end() .to("file:out"); Something like that? Not sure about the syntax since I use Spring DSL. -- View this message in context: http://camel.465427.n5.nabble.com/onCompletion-for-failed-exchanges-tp3281388p3281414.html Sent from the Camel - Users mailing list archive at Nabble.com.