Hi

Ah yeah the default in spring is 3, so I guess if you want no retry, then 0
should be a valid value.
https://issues.apache.org/jira/browse/CAMEL-20803

On Fri, May 24, 2024 at 2:35 PM Speckels, Bert <bert.speck...@btc-ag.com>
wrote:

> Hallo (again)
>
> In Camel Spring RabbitMQ we found the following component option:
>
> option: maximumRetryAttempts (consumer)
> description: How many times a Rabbitmq consumer will retry the same
> message if Camel failed to process the message.
> default: 5
> type: int
>
> Based on the description, I would actually have expected that this value
> would have to be set to 0
> if we don't want any retries. But that is apparently not the case: With
> value 0, retries still occur (3 times?).
> Only when I set maximumRetryAttempts to 1 no retries will be carried out
> in the event of an error.
>
> Is this the expected behavior?
>
> This option maps directly to 'maxAttempts' of the Spring Framework,
> right?!
> In that case IMHO 'attempts' (including first processing) and
> "retryAttempts' (exluding first processing) have
> different meanings ... but I am not a native speaker :)
>
> Maybe at least the description should mention this more clearly?!
>
> With kind regards
> Bert.



-- 
Claus Ibsen
-----------------
@davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to