THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||||
---|---|---|---|---|
| ||||
<bean id="myRedeliveryPolicy" class="org.apache.camel.processor.RedeliveryPolicy"> <property name="maximumRedeliveries" value="${myprop.max}"/> </bean> <onException> <!-- you can define multiple exceptions just adding more exception elements as show below --> <exception>com.mycompany.MyFirstException</exception> <exception>com.mycompany.MySecondException</exception> <!-- here we reference our redelivy policy defined above --> <redeliveryPolicy ref="myRedeliveryPolicy"/> </onException> |
See also
The Error Handler for the general error handling documentation
The Dead Letter Channel for further details.
The Transactional Client for transactional behavior