Created a custom IdempotentRepository implementation that uses MongoDB for
storing idempotent keys. It implements the
org.apache.camel.spi.IdempotentRepository interface.

Noticed that the contains method is not called when setting the eager option
to true. It seems to be the opposite to the javadoc comment.

    /**
     * Returns <tt>true</tt> if this repository contains the specified
element.
     * <p/>
     * This operation is used if the option <tt>eager</tt> has been enabled.
     *
     * @param key the key of the message
     * @return <tt>true</tt> if this repository contains the specified
element
     */
    boolean contains(E key);

Any ideas why this is happening? 

Trying to get the Filter duplicate messages thing to work:
http://camel.apache.org/idempotent-consumer.html (How to handle duplicate
messages in the route)

Using ServiceMix 4.5.3 and Camel 2.10.7



--
View this message in context: 
http://camel.465427.n5.nabble.com/IdempotentConsumer-contains-not-called-tp5747630.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to