【发布时间】:2012-07-12 19:42:10
【问题描述】:
您好,我正在尝试编写一个简单的独立 java FTP 程序,该程序使用 Apache Camel 将文件从 FTP 服务器位置下载到我的本地计算机。当我运行时,我看到它永远运行并且实际的文件传输没有发生。可能是什么问题?
private static class MyRouteBuilder extends RouteBuilder {
@Override
public void configure() throws Exception {
from("sftp://serverIpAddress?password=passwd&binary=true")
.process(new Processor() {
public void process(Exchange exchange) throws Exception {
System.out.println("Invoked timer at " + new Date());
}
})
.tracing()
.to("file://localmachine/Users/localFtpOutput/")
;
}
}
【问题讨论】:
-
跟踪中有任何有用的信息吗?你能分享一下输出吗?
标签: apache-camel