On Tue, Jun 1, 2010 at 9:03 AM, Onaluf <selim.arse...@gmail.com> wrote: > > Hi, I'm using camel 2.3 and I couldn't find a way to enable the "markerFile" > lock strategy for a FTP endpoint. In the docs it's written that "changed" > and "fileLock" are not available but nothing about "markerFile". >
MarkerFile is NOT supported for FTP. In fact the only option supported is: rename and none. I will improve the documentation. > In the source code I found (in GenericFileProcessStrategyFactory, from line > 79): > > if (ObjectHelper.isNotEmpty(readLock)) { > if ("none".equals(readLock) || "false".equals(readLock)) { > return null; > } else if ("rename".equals(readLock)) { > GenericFileRenameExclusiveReadLockStrategy<T> > readLockStrategy = new GenericFileRenameExclusiveReadLockStrategy<T>(); > Long timeout = (Long) params.get("readLockTimeout"); > if (timeout != null) { > readLockStrategy.setTimeout(timeout); > } > return readLockStrategy; > } > } > > Which seams to imply that only "rename" is supported? (From what I > understand "markerFile" only works when it's the default of the endpoint and > cannot be set if it isn't.) Is this correct ? Is there a reason for this or > can I patch this to use the strategy anyway? > > > -- > View this message in context: > http://old.nabble.com/FTP-endpoint-markerFile-tp28738325p28738325.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus