Hi Yeah not sure how easy it is to add logic to detect when a file rollover. Maybe it reads the first N bytes and make a hash or something. And then if the retry do the same, and when the hash no longer matches then its assume a new file that was rolled over, and it beings emit the data.
On Wed, Apr 22, 2015 at 3:30 PM, Akram <[email protected]> wrote: > I tried it, but retry was keep on reading the same file again and again > before the new file gets generated. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Reading-a-file-using-camel-stream-component-tp5766108p5766160.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/
