我已将 Camel 配置为从 ftp 中选取文件。但是在放置任何空文件的地方,它无法选择它并连续记录相同的事件:
2015-07-14 19:53:11,005 WARN [org.apache.camel.component.file.remote.strategy.FtpChangedExclusiveReadLockStrategy] (Camel (camel-1) thread #0 - ftp://abc.com/responsefiles) Cannot acquire read lock within 20000 millis. Will skip the file: RemoteFile[REFUND07102015.141730.csv]
我的 Camel 配置是:
sftp://[servername]/responsefiles?username=[username]&password=[password]&readLock=changed&readLockCheckInterval=5000&noop=false&preMove=.processing&move=.done
最佳答案
您可能需要配置readLockMinLength=0
以允许拾取空文件。查看更多详情http://camel.apache.org/file2
关于file-io - Camel 无法选取 0 字节文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31416335/