Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-5209

Describe default error handler configuration

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.9.2
    • None
    • documentation
    • None
    • Novice

    Description

      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

      Attachments

        Activity

          People

            muellerc Christian Müller
            jkorab Jakub Korab
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: