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: What are the differences between using preMove and readLock=rename
Date Tue, 30 Aug 2011 12:09:36 GMT
On Tue, Aug 30, 2011 at 2:03 PM, bbuzzard
<Billy.Buzzard@bnsflogistics.com> wrote:
> When I first read your response I guess I missed the part about preMove
> happens after the readLock has determined it's ok to consume the file.  So
> if readLock=none then it might be possible for the preMove to move a file
> that was still being written to.  Is that correct?
>

Yes.

The readLock also have a timeout option, so you can have Camel wait a
bit trying to obtain the read-lock.

And only of the lock is acquired, Camel will process the file, which
means only at this point in time,
the preMove is being executed.




> --
> View this message in context: http://camel.465427.n5.nabble.com/What-are-the-differences-between-using-preMove-and-readLock-rename-tp4747269p4749777.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message