Hello Gents, I would like to pick your brains about a way to globally handle errors in our routs builders. I'm pretty new to Camel so please bear with me and my silly questions ;)
The goal: I would like to set up a concise error handling for the SOAPFaults and our own exceptions that we throw from beans. My ideas: I could use onException or doTry but this would have to be configured either in every route builder or we would have to extend a route builder with this configuration every time. I don't like this solution so I've turned towards errorHandlers which I could just plug-in in one place for all our route builders. My questions: Do I have to create my own error handler builder, which looks quite complex just for pluging a simple processor, or can I just reuse an existing handler by plugging my own processor like defaultErrorHandler().setFailureProcessor(myCustomErrorProcessor) ? Is there a better way of doing it or reasons why I shouldn't be doing it like that ? -- View this message in context: http://camel.465427.n5.nabble.com/Concise-global-error-handling-tp5727931.html Sent from the Camel - Users mailing list archive at Nabble.com.