Hi Cédric, Thank you for your reply. I implemented your suggestion and I seem to be halfway there: my ftp logs are showing that ServiceMix is logging in:
Aug 1 22:17:14 gmurray-09290s ftpd[440]: connection from localhost to localhost Aug 1 22:17:15 gmurray-09290s ftpd[440]: FTP LOGIN FROM localhost as user (class: real, type: REAL) Command line ftp is working fine. I have a test user (named "user") on localhost with files "tmp.txt" in ~ and ~/dir1/. However, the files are not being transferred or deleted. There are no error messages from ServiceMix, but I'm sure there must be a mistake(s) in my xml config (below). I'm finding it difficult to locate the right documentation for this example, and I appreciate your help. Thanks again, Glenn <?xml version="1.0" encoding="UTF-8"?> <beans xmlns:sm="http://servicemix.apache.org/config/1.0" xmlns:foo="http://servicemix.org/demo/"> <!-- the JBI container --> <sm:container id="jbi" useMBeanServer="true" createMBeanServer="true" dumpStats="true" statsInterval="10"> <sm:activationSpecs> <!-- Poll for files --> <sm:activationSpec componentName="ftpPoller" service="foo:ftpPoller" destinationService="foo:fileWriter"> <sm:component> <bean class="org.apache.servicemix.components.net.FTPPoller"> <property name="clientPool"> <bean id="ftpClientPool" class="org.apache.servicemix.components.net.FTPClientPool"> <property name="host" value="localhost"/> <property name="username" value="user"/> <property name="password" value="user"/> </bean> </property> <property name="workManager" ref="workManager"/> <property name="path" value="/Users/user/dir1"/> <property name="period" value="10000"/> </bean> </sm:component> </sm:activationSpec> <!-- Write files to the outbox directory --> <sm:activationSpec componentName="fileWriter" service="foo:fileWriter"> <sm:component> <bean xmlns="http://xbean.org/schemas/spring/1.0" class="org.apache.servicemix.components.file.FileWriter"> <property name="directory" value="/Users/gmurray/Downloads/servicemix/examples/ftp-GM/outbox" /> <property name="marshaler"> <bean class="org.apache.servicemix.components.util.DefaultFileMarshaler"> </bean> </property> </bean> </sm:component> </sm:activationSpec> </sm:activationSpecs> </sm:container> <!-- the work manager (thread pool) for this container --> <bean id="workManager" class="org.jencks.factory.WorkManagerFactoryBean"> <property name="threadPoolSize" value="30" /> </bean> </beans> -- View this message in context: http://www.nabble.com/Newbie-ftpPoller-questions-tf2028869.html#a5607573 Sent from the ServiceMix - User forum at Nabble.com.
