You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by davsclaus <ci...@yahoo.dk> on 2010/10/20 12:03:07 UTC

Re: FTP Polling exclusive read lock problem

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.

Re: FTP Polling exclusive read lock problem

Posted by davsclaus <ci...@yahoo.dk>.
See this link about posting form nabble
http://camel.apache.org/discussion-forums.html

The preMove is done after a lock has been acquired. Camel will only start
working on the file if the lock has been acquired.
-- 
View this message in context: http://camel.465427.n5.nabble.com/FTP-Polling-exclusive-read-lock-problem-tp3228159p3228458.html
Sent from the Camel - Users mailing list archive at Nabble.com.