Hmm the options I use on my file reader (which works flawlessly) are:
    final String FILE_READER_OPTIONS =
"?include=.*\\.xlsx&readLock=changed&delay=" + this.config.fileReadDelay()
                                       +
"&moveFailed=Errors&move=Processed";
I use the file2 component to accomplish this. The delay parameter is how
long to wait between polls and I think thats what you need, not the check
interval.  Try that and let us know.

*Robert Simmons Jr. MSc. - Lead Java Architect @ EA*
*Author of: Hardcore Java (2003) and Maintainable Java (2012)*
*LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39
<http://www.linkedin.com/pub/robert-simmons/40/852/a39>*


On Wed, Mar 26, 2014 at 10:40 PM, paulc8712 <[email protected]> wrote:

> Hi.
>
> I have a file consumer that intermittently gets 'blocked'.
>
> There is a file in the directory, and the route has 1 'inflight' message
> but
> it never clears.
> I typically also see a .lock file who's time-stamp does increase.
>
> It seems to me that it is waiting for the file write to be completed.
>
> My endpoint is configured as:
> file://{{filebase}}?moveFailed=.error&readLock=changed&readLockMinLength=0
>
> I have also tried putting readLockCheckInterval=10000, and while it did
> seem
> to decrease the frequency of the 'block', it still does occur.
>
> Any suggestions to either help diagnose the problem, or some alterative
> techniques that I could try?
>
> Thanks, PC
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/File-Consumer-getting-blocked-tp5749408.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Reply via email to