Hi You can use the stream component, which can monitor a file for changes (like a tail command). http://camel.apache.org/stream
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 <akram.s...@gmail.com> 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: > http://camel.465427.n5.nabble.com/How-to-track-file-modifications-tp5766237.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/