camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Consume the same file
Date Wed, 13 Mar 2013 16:31:17 GMT
On Wed, Mar 13, 2013 at 3:54 PM, Alberto Brosich
<> wrote:
> Hi,
> I have to consume with the FTP component always the same file but only when
> its size changes.
> I read this in the documentation:
> Camel 2.11: To use a custom idempotent key. By default the absolute path of
> the file is used. You can use the File Language, for example to use the file
> name and file size, you can do:
> idempotentKey=${file:name}-${file:size}
> Does it mean that I have to wait camel 2.11 to solve my problem?

No, you can implement your own idempotent repository where you can do
your own logic for determining if a message is a duplicate or not.

But yeah this is much easier out of the box in Camel 2.11 with that
new idempotentKey option.

> Regards
> Alberto

Claus Ibsen
Red Hat, Inc.
FuseSource is now part of Red Hat
Twitter: davsclaus
Author of Camel in Action:

View raw message