You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Idempotent Consumer

The Idempotent Consumer from the EIP patterns is used to filter out duplicate messages. This is achieved by using an Expression to calculate a unique message ID string for a given message exchange; this ID can then be looked up in the MessageIdRepository to see if it has been seen before; if it has the message is consumed; if its not then the message is processed and the ID is added to the repository.

The Idempotent Consumer essentially acts like a Message Filter to filter out duplicates.

Using the Fluent Builders

Error formatting macro: snippet: java.lang.NullPointerException

Using the Spring XML Extensions

Error formatting macro: snippet: java.lang.NullPointerException
  • No labels