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 Wed, 22 Apr 2015 09:45:02 GMT
Hi

You need to set the retry option to true
http://camel.apache.org/stream

On Tue, Apr 21, 2015 at 3:29 PM, Akram <akram.sa18@gmail.com> wrote:
> Hi,
> I am reading a file using the stream camel component. But the problem is
> when file gets rolled out then camel is not reading the newly generated file
> with the same name.
>
>     from("stream:file?fileName=myfile&scanStream=true&scanStreamDelay=1000")
>
> The above route will read the current file "myfile". But if this gets rolled
> out to "myfile_1" and a new file with same name"myfile" gets generated then
> camel is not reading the newly generated "myfile". Any idea why this is
> happening. Is there any way to read "myfile" always eventhough a new file is
> generated with the same name and old one gets rolled out.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Reading-a-file-using-camel-stream-component-tp5766108.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/

Mime
View raw message