I tried to create a custom LockManager for FTP Poller but I get an error:

Initialization of bean failed; nested exception is
org.springframework.beans.InvalidPropertyException: Invalid property
'lockManager' of bean class [org.apache.servicemix.ftp.FtpPollerEndpoint]:
No property 'lockManager' found

The same LockManager I created does work on the File Poller.  Looking at the
FtpPollerEndpoint source code at:

http://svn.apache.org/repos/asf/servicemix/components/bindings/servicemix-ftp/trunk/src/main/java/org/apache/servicemix/ftp/FtpPollerEndpoint.java

it seems that the LockManager is not a settable property for the FTP Poller. 
The documentation for FTP Poller at
http://servicemix.apache.org/servicemix-ftp.html indicates that LockManager
should be a settable property for FTP File Poller.  Am I doing something
wrong?

  <ftp:poller service="esb:ftpPoller" 
                endpoint="gateFilePoller"
                targetService="esb:fileDetectedPipeline"
                targetEndpoint="fileDetectedPipelineEndpoint"
                uri="ftp://user:p...@host/path_to/file";
                recursive="true"
                deleteFile="false"              
                period="3000"
                marshaler="#binaryMarshaler"
                lockManager="#myLockManager"/>
  
  <bean id="binaryMarshaler" 
        class="org.apache.servicemix.components.util.BinaryFileMarshaler">
        <property name="contentType" value="application/octet-stream"/>
  </bean>
  
  <bean id="myLockManager"
class="com.photomask.esb.components.util.BlobLockManager" />

What is the recommended way to keep track of files that have been processed
by the FTP Poller if you do not delete the files after processing?
-- 
View this message in context: 
http://www.nabble.com/LockManager-for-FTP-Poller-tp23175832p23175832.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to