camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: How to track file modifications
Date Fri, 24 Apr 2015 05:27:25 GMT

You can use the stream component, which can monitor a file for changes
(like a tail command).

Other than that its not out of the box from Camel and you would need
to build your own component / java code to do so.

On Thu, Apr 23, 2015 at 6:15 PM, Akram <> wrote:
> I needed to track the changes to a file. I thought it would be look like
> this:
> from("file://mydirectory?noop=true&fileName=myfile.json&idempotentKey={file:modified}-{file:size}")
> If the file(myfile.json) changes then I should get an Exchange. But this is
> not working. It is treating the file as new and starts reading it from
> beginning. Is there any way to achieve this.
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Red Hat, Inc.
Twitter: davsclaus
Author of Camel in Action:

View raw message