camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davsclaus <>
Subject Re: FTP Polling exclusive read lock problem
Date Wed, 20 Oct 2010 10:03:07 GMT

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

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:
Sent from the Camel - Users mailing list archive at

View raw message