Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Redelivery default values

In Camel 2.0 redelivery is disabled by default, as opposed to Camel 1.x in which Dead Letter Channel is configured with maximumRedeliveries=5.

The default redeliver policy will use the following values:

  • maximumRedeliveries=0 (in Camel 1.x the default value is 5)
  • redeliverDelay=1000L (1 second, new as of Camel 2.0)
    • use initialRedeliveryDelay for previous versions
  • maximumRedeliveryDelay = 60 * 1000L (60 seconds, new option in Camel 1.4)
  • And the exponential backoff and collision avoidance is turned off.
  • The retriesExhaustedLogLevel and retryAttemptedLogLevel are set to LoggingLevel.ERRORDEBUG
  • Stack traces is not logged

The maximum redeliver delay ensures that a delay is never longer than the value, default 1 minute. This can happen if you turn on the exponential backoff.

...

Camel will log delivery failures at the ERROR DEBUG logging level by default. You can change this by specifying retriesExhaustedLogLevel and/or retryAttemptedLogLevel. See ExceptionBuilderWithRetryLoggingLevelSetTest for an example.

In Camel 2.0 you can turn off stack traces for the caused exceptions. As the stack trace is logged at before each redelivery attemptlogging of stack traces on/off. If turned off Camel will still log the redelivery attempt. Its just much less verbose.

...