camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Reading a file using camel stream component
Date Wed, 22 Apr 2015 09:45:02 GMT

You need to set the retry option to true

On Tue, Apr 21, 2015 at 3:29 PM, Akram <> 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:
> Sent from the Camel - Users mailing list archive at

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

View raw message