My route is polling from endpoint
ftp://localhost:21/folder?username=user&password=password&delay=15s&move=processed&moveFailed=error&sendEmptyMessageWhenIdle=true&passiveMode=true.
If I just add readLock=rename
, Camel will ignore troublesome file and leave it in folder.
How to implement camel behavior so that if file is still being locked by somebody after readLockTimeout
or n
attempts, Camel will not skip the file, but throw an Exception.