On Wed, Mar 13, 2013 at 3:54 PM, Alberto Brosich <abros...@ogs.trieste.it> 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 Email: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen