Can you try the latest Camel 2.5-SNAPSHOT? It fixed some camel-ftp components bug of Camel 2.4.0.

Maybe this thread[1] can give you some hit to workaround the issue.

[1]http://camel.465427.n5.nabble.com/anonymous-FTP-login-fails-td2846235.html#a2846235

10/10/10 5:33 AM, tonyhe wrote:

Hi,
I wanted to use Camel-FTP (v2.4) to download a file to a directory.

Here I set up my routes:

from("ftp://www.ibiblio.org/pub/mirrors/apache/camel/apache-camel/2.4.0/?filter=#camelFileFilter&disconnect=true";)
     .to("file:target/messages/others");


My camelFileFilter class
public class CamelFileFilter implements GenericFileFilter
{
         final static Logger logger =
Logger.getLogger(CamelFileFilter.class);

     public boolean accept(GenericFile file)
     {
     logger.debug("fileName=" + file.getFileName());
         return file.getFileName().equals("apache-camel-2.4.0.zip.asc");
     }
}

I want this route to stop immediately when the "apache-camel-2.4.0.zip.asc"
file has been downloaded. But it seems after Camel-FTP successfully
downloads my file, it is ignoring my "disconnect=true" property and just
keeps
displaying:
FtpConsumer                    INFO  Connected and logged in to:
ftp://[email protected]:21
FtpConsumer                    INFO  Connected and logged in to:
ftp://[email protected]:21
and never terminate the program.

Has anyone else encountered this problem?


--
Willem
----------------------------------
Open Source Integration: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: http://twitter.com/willemjiang

Reply via email to