Re: org.apache.camel.processor.RedeliveryPolicy not found by org.apache.camel.camel-base

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: org.apache.camel.processor.RedeliveryPolicy not found by org.apache.camel.camel-base

Andrea Cosentino-3
It's here

https://github.com/apache/camel/blob/camel-3.0.1/core/camel-base/src/main/java/org/apache/camel/processor/errorhandler/RedeliveryPolicy.java

I think it is missing in the migration guide.

Il mar 21 apr 2020, 23:21 Gerald Kallas <[hidden email]> ha scritto:

> I'm working with Camel 3.0.1.
>
> When defining
>
>         <bean id="redeliveryPolicyConfig"
> class="org.apache.camel.processor.RedeliveryPolicy">
>                 <property name="maximumRedeliveries" value="3"/>
>                 <property name="redeliveryDelay" value="5000"/>
>         </bean>
>
>         <bean id="deadLetterErrorHandler"
> class="org.apache.camel.builder.DeadLetterChannelBuilder">
>                 <property name="deadLetterUri" value="jms:queue:DLQ"/>
>                 <property name="redeliveryPolicy"
> ref="redeliveryPolicyConfig"/>
>         </bean>
>
> as documented I'm getting an error
>
> org.osgi.service.blueprint.container.ComponentDefinitionException: Unable
> to load class org.apache.camel.processor.RedeliveryPolicy from recipe
> BeanRecipe[name='redeliveryPolicyConfig']
> ...
> Caused by: java.lang.ClassNotFoundException:
> org.apache.camel.processor.RedeliveryPolicy not found by
> org.apache.camel.camel-base [94]
>
> Does there have something changed in Camel 3?
>
> Best
> - Gerald
>