Jakub Korab created CAMEL-5209: ---------------------------------- Summary: Describe default error handler configuration Key: CAMEL-5209 URL: https://issues.apache.org/jira/browse/CAMEL-5209 Project: Camel Issue Type: Improvement Components: documentation Affects Versions: 2.9.2 Reporter: Jakub Korab
In the error handler documentation it is not obvious as to how to define a default error handler across all routes using the XML DSL. The information is there, but hidden in the last section of a code block above the "Using the transactional error handler" section. Could you please remove that part of the code block (starting with "<!-- You can also define the errorHandler inside the camelContext") and append the following to the "Spring based configuration" section after the code block: --- A default error handler may be configured by referencing it via the errorHandlerRef attribute in the camelContext tag. This will be used across all routes that do not explicitly specify one of their own. -- code <camelContext errorHandlerRef="globalErrorHandler" xmlns="http://camel.apache.org/schema/spring"> <errorHandler id="globalErrorHandler" type="NoErrorHandler"/> </camelContext> -- code -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira