Checkout: http://camel.apache.org/idempotent-consumer.html and
http://camel.apache.org/simple.html

Instead of
from("direct:a")
    .idempotentConsumer(header("myMessageId"), ...

try something like
from("direct:a")

.idempotentConsumer(simple("${header.CamelFileNameOnly}-${header.CamelFileLastModified}"),
...

Best,
Christian

On Mon, Sep 17, 2012 at 11:34 PM, webber78 <kiran.baire...@gmail.com> wrote:

> Thanks for your reply. Is there anyway I can get the header you described
> in
> a subclass of AbstractJdbcMessageIdRepository. I saw a few examples of
> getting headers using the Exchange object, but not sure how to get access
> to
> these from an idempotent repository.
>
> Thanks,
> Kiran
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Custom-Idempotent-Jdbc-repository-Using-lastmodified-time-tp5719480p5719495.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



--

Reply via email to