Hi, I'm trying to configure the DeadLetterChannel with spring. Unfortunately without success. No matter where I declare the <onException>, camel tries to redeliver the message 5 times in the case of an exception.
How must the following configuration be modified so that camel just tries to deliver once? <camelContext id="camel" xmlns="http://activemq.apache.org/camel/schema/spring"> <route> <from uri="cxf:bean:routerEndpoint"/> <onException> <!-- no effect --> <redeliveryPolicy> <maximumRedeliveries>0</maximumRedeliveries> </redeliveryPolicy> </onException> <process ref="decryptProcessor"> <onException> <!-- no effect --> <redeliveryPolicy> <maximumRedeliveries>0</maximumRedeliveries> </redeliveryPolicy> </onException> </process> <choice> <when> <methodCall bean="endpointSelector" method="matches"/> <to uri="cxf:bean:serviceEndpoint?dataFormat=MESSAGE"/> </when> <otherwise> <to uri="cxf:bean:localEndpoint"/> </otherwise> </choice> </route> </camelContext> Thanks a lot! Cheers, Marc
