I just tried a few other methods of trying to download files from an FTP
server.. take a look at this code as well:
CamelContext context = new DefaultCamelContext();
try {
context.addRoutes(new RouteBuilder() {
public void configure() throws Exception {
String ftpUrl =
"ftp://myusern...@localhost:" + "21"
+
"/incoming/?binary=true"
+
"&password=mypassword&consumer.delay=50&consumer.setNames=true";
String fileUrl =
"file:///c:/inbox/?noop=true&autoCreate=true";
from(ftpUrl).to(fileUrl);
}
});
context.start();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
My libraries are commons-logging-1.1
antlr-3.0.1
commons-net
jcr-1.0
restlet-1.0
jaxen-1.1-beta-9
j2ee
commons-codec-1.3
spring-2.5.5
apache-camel-1.4.0 (tried 1.5 and 2.0 as well)
Basically camel establishes a connection to an FTP server but it doesn't
download any of the files after it connects.
DavidArthurScott wrote:
>
> <camel:from
> uri="ftp://myusern...@mptnas/public/outgoing/Shapefiles?password=mypassword&&consumer.delay=100"/>
>
> I'm trying to download all of the files from an FTP server but camel just
> connects to the server and hangs. It won't download any files.. any
> suggestions?
>
--
View this message in context:
http://www.nabble.com/Camel-FTP-Endpoint-doesn%27t-work--tp22851380p22853449.html
Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.