0
我正在开发一个路径以批量方式从FTP位置下载文件。请在下面找到我的路线 -Apache Camel:FTP批量使用者不打印文件批量索引和文件批量大小
**from("ftp://[email protected]/inbox?password=XXXX&binary=true&recursive=true")
.log("Batch Index = ${header.CamelFileBatchIndex}, Batch Size = ${header.CamelFileBatchSize}")
.to("file:outbox");**
该路线工作正常,所有的文件都下载。但批处理细节(即CamelFileBatchIndex和CamelFileBatchSize)没有被记录。
请找到下面的输出 -
**2016-06-28 18:56:24.600 INFO 8696 --- [ main] com.camel.examples.CamelApplication : Started CamelApplication in 9.814 seconds (JVM running for 11.237)**
**2016-06-28 18:56:28.594 INFO 8696 --- [/inbox] route1 : Batch Index = , Batch Size =**
感谢。您建议的字段名称工作。但是,我从[here](http://camel.apache.org/ftp2.html#FTP2-MessageHeaders)获得了字段名称。也许,骆驼文档需要一些修改。 –