Hi,

I have a route with an onException that references a spring bean redelivery
policy. It appears that the reference is not working as I have a
maximumRetries set but no retries are attempted. If I use the onException
with a child element <redeliveryPolicy maximumRedeliveries="5" /> it works
fine.

Does anyone know how to make this work?

V2.8.1

<bean id="redeliverMe" class="org.apache.camel.processor.RedeliveryPolicy">
        <property name="maximumRedeliveries"
value="${POLICY.MAXIMUM_REDELIVERIES:5}"></property>
</bean>

<camel:camelContext id="mycontext">
                <camel:route id="routeAAA">
                        <camel:from ref="aaa"></camel:from>
                        <camel:transacted 
ref="PROPAGATION_REQUIRED"></camel:transacted>
                        <camel:onException redeliveryPolicyRef="redeliverMe">
                                
<camel:exception>java.lang.Exception</camel:exception>
                                
<camel:handled><camel:constant>false</camel:constant></camel:handled>
                        </camel:onException>
                        <camel:process ref="someProcessor"></camel:process>
                </camel:route>                  
</camel:camelContext>



--
View this message in context: 
http://camel.465427.n5.nabble.com/onException-with-redeliveryPolicyRef-not-working-tp5735579.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to