Versions Compared

Key

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

...

Camel will add the message id eagerly to the repository to detect duplication also for Exchanges currently in progress.
On completion Camel will remove the message id from the repository if the Exchange failed, otherwise it stays there.

Options

The Idempotent Consumer has the following options:

Option

Default

Description

eager

true

Camel 2.0: Eager controls whether Camel adds the message to the repository before or after the exchange has been processed. If enabled before then Camel will be able to detect duplicate messages even when messages are currently in progress. By disabling Camel will only detect duplicates when a message has successfully been processed.

Using the Fluent Builders

The following example will use the header myMessageId to filter out duplicates

...