camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vincent Nonnenmacher <>
Subject Re: Advice on mirroring using FTP2 component
Date Mon, 03 Sep 2012 18:54:51 GMT
one way could be to not use idempotent and implement a filter that return
true or false
on the modification date of the underlying file and handle a water mark so
you know
that any file with such date after the mark is selected.

On other could be to implement your own

org.apache.camel.spi.IdempotentRepository object that would delegate to one
the current Memory or File based one, but overrides the contains(key) to
false for any given entry that is already present (processed) but which
'modification date'
is after your 'water mark'.

On Mon, Sep 3, 2012 at 6:31 PM, Tim Dudgeon <> wrote:
> Hi, I'm new to Camel, so please excuse my ignorance.
> I'm wanting to set up mirroring of files on a FTP server, so that whenever
> new files appear, or old files get changed, they get copied to the local
> mirror, and maybe some processing performed on them.
> I've worked out the basics of how to use the FTP and File components, and
> now wondering how to actually set this up to do what I want. I got the
> idempotentRepository working (using a FileIdempotentRepository) to make
> that files are only processed once, but then realised that this isn't
> to allow updated files to be re-fetched.
> Is there an already baked approach to doing this, or do I need to cook my
> own?
> Tim
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message