Hi, 

Im new to Camel and am trying to get the hang of it. Made some routes to
store data of xml files in database and some other basic stuff like sending
mails.
Now I was trying to get the FTP running to poll the ftp for new xml files to
include in my routes.

It just doesn't want to work. I tried almost everything I found around the
internet and Camel website but still cant get it working.
I got all the needed maven dependencies included in my pom.
The application is running on tomcat. No exceptions or errors in console..

routebuilder:

@Component(value="ftpRoute")
public class FTPRouteBuilder extends SpringRouteBuilder {

    @Override
    public void configure() throws Exception 
    {
        System.out.println("*** Route Configured ***");
              
from("ftp://10.32.67.28:21?username=camel&password=secret&binary=true&consumer.delay=3000";)
             .to("file:/data");

    }
    
}

camelcontext:

...

    <context:annotation-config/>
        <context:component-scan base-package="be.laco.java.camel.plugin.ftp"/>

    <camelContext xmlns="http://camel.apache.org/schema/spring";>
        <contextScan/>
    </camelContext> 

...


FTP Server log:

2012-10-24 17:00:06 - (not logged in)  ! New user connected from
10.32.67.28, sending welcome message...
2012-10-24 17:00:06 - (not logged in) > USER camel
2012-10-24 17:00:06 - (not logged in) < 331 User name received, need
password.
2012-10-24 17:00:06 - (not logged in) > PASS *****
2012-10-24 17:00:06 - camel  ! Successfully logged in.
2012-10-24 17:00:06 - camel  < 230 User logged in, proceed.
2012-10-24 17:00:06 - camel  > TYPE A
2012-10-24 17:00:06 - camel  < 200 Type set to A.
2012-10-24 17:00:06 - camel  > PWD
2012-10-24 17:00:06 - camel  < 257 "/" is working directory.
2012-10-24 17:00:06 - camel  > SYST
2012-10-24 17:00:06 - camel  < 215 UNIX Type: L8
2012-10-24 17:00:06 - camel  ! Disconnected.


Any help would be greatly appreciated!

Maarten



--
View this message in context: 
http://camel.465427.n5.nabble.com/FTP-Issue-tp5721536.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to