Do you need exclusive read lock on those files?

When the files is being dropped into that FTP folder are they already done?
For example write to a temp folder and then move the file (atomic OS
operation)

If so you can use readLock=none.

Its generally best to have a strategy where the producer does that in a temp
folder, or as temp files (eg like .inprogress) or something. And then
rename/move the file afterwards (which would be atomic OS operation).

Camel allows you to build you custom read lock strategy in case you want to
do something custom. Some just download the files and check the content is
complete, eg if its a xml file that the end tag is there.
-- 
View this message in context: 
http://camel.465427.n5.nabble.com/FTP-Polling-exclusive-read-lock-problem-tp3228159p3228266.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to