You can shutdown the route in the error handler.
I don't think shutdown the endpoint is good practices, as it will cause
some trouble when the message is routed to that endpoint.
On Thu Dec 15 21:45:23 2011, Guillaume Yziquel wrote:
Hi.
I've got a small question concerning best practice with respect to the
lifecycle of the endpoints of a Camel component: Should there be a way,
in case of irrecoverable errors, to shut down the endpoint on which
irrecoverable errors occurred?
--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang