Implement readLock with lsof

2013-12-11 Thread Martín Steffen
Hello, I have a problem with the change readLock strategy when I send a file through FTP, When I send a file through FTP and occur network issues (package delay, lost, etc), then Camel takes an incomplete file due to expiration of readLockCheckInterval. Are you evaluated the option of use the

Re: Implement readLock with lsof

2013-12-11 Thread kraythe .
try: from(file:/mypath?include=.*\\.xlsxreadLock=changeddelay= + this.config .fileReadDelay()+ moveFailed=Errorsmove=Processed) This sets up a locking strategey delay that will fail to get the read lock if the file has been changed within fileReadDelay() milliseconds. When the file is streaming

Re: Implement readLock with lsof

2013-12-11 Thread Martín Steffen
Hi, Thanks for your answer. But, in your scenario, a file that is uploaded needs to wait 5 minutes to be taked by Camel? If NOT exists network issues, the file takes 5 minutes to be taked by Camel? This is unacceptable for me. Thanks, Martin. On 12/11/13 2:08 PM, kraythe . kray...@gmail.com

Re: Implement readLock with lsof

2013-12-11 Thread Claus Ibsen
Hi Then you can implement your custom read lock strategy where you can use any java code to do whatever you want. On Wed, Dec 11, 2013 at 6:14 PM, Martín Steffen mstef...@3cinteractive.com wrote: Hi, Thanks for your answer. But, in your scenario, a file that is uploaded needs to wait 5