You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Ellen <YL...@statestreet.com> on 2012/02/27 23:26:44 UTC

Camel FTP2 not polling

Hi there, 

I'm using Camel 2.6 to poll files from an old Hummingbird ftp server on
Windows. Unfortunately I'm stuck with this FTP server. 

I can manually connect and login, list files and get files from the default
directory. 

The FTP server dose not support SYST command, so I'm using a ftpClientConfig
to avoid the call to SYST. Below is the end point and it is referrenced by a
route. 

However, when using endpoint as below, all I can see is that it connects and
logged in fine, then nothing happens and the files are not being polled even
though the done file is present.  What am I doing wrong here?




		 
       		

			

--
View this message in context: http://camel.465427.n5.nabble.com/Camel-FTP2-not-polling-tp5520236p5520236.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel FTP2 not polling?

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Try outside OSGi from a plain java application / unit test.

And then you can also enable DEBUG/TRACE logging on the camel-ftp
component and the ftp library itself, to see what it logs.
Camel uses the Apache Commons Net library for the ftp component.



On Mon, Feb 27, 2012 at 11:28 PM, Ellen <YL...@statestreet.com> wrote:
> Hi there,
>
> I'm using Camel 2.6 to poll files from an old Hummingbird ftp server on
> Windows. Unfortunately I'm stuck with this FTP server.
>
> I can manually connect and login, list files and get files from the default
> directory.
>
> <endpoint id="myEndpoint"
> uri="ftp://myid@myserver?password=xxxx&amp;ftpClientConfig=#myFtpConfig&amp;doneFileName=done&amp;stepwise=false&amp;delete=true&amp;delay=300000"
> />
>
> <bean id="myFtpConfig" class="org.apache.commons.net.ftp.FTPClientConfig">
>                <constructor-arg value="WINDOWS" />
>                <property name="serverLanguageCode" value="en"/>
> </bean>
>
> The FTP server dose not support SYST command, so I'm using a ftpClientConfig
> to avoid the call to SYST. Below is the end point and it is referrenced by a
> route.
>
> However, when using endpoint, all I can see is that it connects and logged
> in fine, then nothing happens and the files are not being polled even though
> the done file is present.  What am I doing wrong here?
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-FTP2-not-polling-tp5520236p5520243.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Camel FTP2 not polling?

Posted by Ellen <YL...@statestreet.com>.
Hi there, 

I'm using Camel 2.6 to poll files from an old Hummingbird ftp server on
Windows. Unfortunately I'm stuck with this FTP server. 

I can manually connect and login, list files and get files from the default
directory. 

<endpoint id="myEndpoint"
uri="ftp://myid@myserver?password=xxxx&amp;ftpClientConfig=#myFtpConfig&amp;doneFileName=done&amp;stepwise=false&amp;delete=true&amp;delay=300000"
/>

<bean id="myFtpConfig" class="org.apache.commons.net.ftp.FTPClientConfig">
		<constructor-arg value="WINDOWS" /> 
       		<property name="serverLanguageCode" value="en"/>
</bean>

The FTP server dose not support SYST command, so I'm using a ftpClientConfig
to avoid the call to SYST. Below is the end point and it is referrenced by a
route. 

However, when using endpoint, all I can see is that it connects and logged
in fine, then nothing happens and the files are not being polled even though
the done file is present.  What am I doing wrong here?



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-FTP2-not-polling-tp5520236p5520243.html
Sent from the Camel - Users mailing list archive at Nabble.com.