On Tue, Aug 30, 2011 at 2:03 PM, bbuzzard <billy.buzz...@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: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/