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 <[email protected]> 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: [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/
