Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In Spring DSL you need to use the onExceptionOccurredRef attribute to refer to a spring bean id that is your custom processor:

Code Block
xml
xml
<bean id="myProcessor" class="com.foo.MyExceptionLoggingProcessor"/>
 
<camelContext errorHandlerRef="eh" xmlns="http://camel.apache.org/schema/spring">

  <errorHandler id="eh" type="DefaultErrorHandler" onExceptionOccurredRef="myProcessor">
    <redeliveryPolicy maximumRedeliveries="3" redeliveryDelay="5000"/>
  </errorHandler>


   ...

</camelContext>

...