camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Reading a file using camel stream component
Date Fri, 24 Jul 2015 08:40:22 GMT
Hi

Just implemented this in CAMEL-9010

On Wed, Apr 22, 2015 at 5:49 PM, Claus Ibsen <claus.ibsen@gmail.com> wrote:
> 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 <akram.sa18@gmail.com> 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: cibsen@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/



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2nd edition: http://www.manning.com/ibsen2

Mime
View raw message