...
In Spring DSL you need to use the onExceptionOccurredRef attribute to refer to a spring bean id that is your custom processor:
Code Block | ||||
---|---|---|---|---|
| ||||
<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> |
...