Hi Guillaume,

I have problem using servicemix ftppoller. In my test case, I need to
download file via ftppoller and write it to a local directory. here is my
xml

====
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://xbean.org/schemas/spring/1.0";
        xmlns:spring="http://xbean.org/schemas/spring/1.0";
        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>

                        <!-- Write files to the outbox directory -->
                        <sm:activationSpec componentName="fileSender"
                                service="foo:fileSender">
                                <sm:component>
                                        <bean 
xmlns="http://xbean.org/schemas/spring/1.0";
                                                
class="org.apache.servicemix.components.file.FileWriter">
                                                <property name="directory" 
value="outbox" />
                                                <property name="marshaler">
                                                        <bean
                                                                
class="org.apache.servicemix.components.util.DefaultFileMarshaler">
                                                                
                                                                        
                                                        </bean>
                                                </property>
                                        </bean>
                                </sm:component>
                        </sm:activationSpec>

                        <!-- Look for files in the inbox directory -->
                        <sm:activationSpec componentName="ftpPoller"
                                destinationService="foo:fileSender" 
service="foo:ftpPoller">
                                <sm:component>
                                        <bean 
xmlns="http://xbean.org/schemas/spring/1.0";
                                                
class="org.apache.servicemix.components.net.FTPPoller">
                                                <property name="clientPool">
                                                        <bean id="ftpClientPool"
class="org.apache.servicemix.components.net.FTPClientPool">
                                                                <property 
name="host" value="138.125.32.45"/>
                                                                <property 
name="username" value="wlpusr"/>
                                                                <property 
name="password" value="$Wlpdib1"/>
                                                        </bean> 
                                                </property>

                                                <property name="marshaler">
                                                        <bean
                                                                
class="org.apache.servicemix.components.util.DefaultFileMarshaler">
                                                                
                                                                        
                                                        </bean>
                                                </property>

                                                <property name="workManager" 
ref="workManager"/>
                                                <property name="path" 
value="tmp" />
                                                <property name="period" 
value="100" />
                                        </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>
====

However it did not throw any error when I run it but seem it did not do
anything. no file has been download and transfer to the specified local
directory. do you have any idea why? thank you very much for your help!!!



-Fran
-- 
View this message in context: 
http://www.nabble.com/FTP--%3EFTP---Folder-tf1783517.html#a5419909
Sent from the ServiceMix - User forum at Nabble.com.

Reply via email to