Hi Ravi,
Thanks for reply.
At the moment i think i have it solved.
onException(Exception.class).id("movexToServiceRouteOnException").log(ERROR,
"${exception.stacktrace}").handled(true).to(getDiscardFtpEndPoint());
I declared a onException route that logs the stack trace, handle the
exception, and routes the file to a new endpoint, that is and FTP endpoint
configured to work on the "discard" folder.
do you see any problem with this approach? ... im interested in learn how to
do it in the better way.
Thanks,
--
View this message in context:
http://camel.465427.n5.nabble.com/FTP-endpoint-on-error-tp5751021p5751112.html
Sent from the Camel - Users mailing list archive at Nabble.com.