camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bbuzzard <Billy.Buzz...@bnsflogistics.com>
Subject Re: What are the differences between using preMove and readLock=rename
Date Tue, 30 Aug 2011 11:55:39 GMT
Except for the fact that readLock=rename does a rename in the current folder
and preMove basically does a rename (move) to a different folder there seems
to be no real difference between the two.  readlock=rename is performed
before any other operation is performed, but so is preMove.  I was hoping
you might tell me that one function was better than the other in a
particular situation.

The only real difference that I can detect is that if preMove is successful
it will have moved the file into a new directory where it should be safe
from overwrite and readLock=true does not.  

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

Mime
View raw message