java - Apache Camel: FTP batch consumer doesn't print file batch index and file batch size -


i developing route download files ftp location batch-wise. please find below route -

**from("ftp://user@ftphost/inbox?password=xxxx&binary=true&recursive=true")             .log("batch index = ${header.camelfilebatchindex}, batch size = ${header.camelfilebatchsize}")             .to("file:outbox");** 

the route works fine , files downloaded. batch details (i.e. camelfilebatchindex , camelfilebatchsize) not getting logged.

please find below output -

**2016-06-28 18:56:24.600  info 8696 --- [           main] com.camel.examples.camelapplication      : started camelapplication in 9.814 seconds (jvm running 11.237)**  **2016-06-28 18:56:28.594  info 8696 --- [/inbox] route1                                   : batch index = , batch size =** 

you using wrong names fields. can find constant values here: http://camel.apache.org/maven/current/camel-core/apidocs/constant-values.html#org.apache.camel.exchange.batch_index

its camelbatchsize , camelbatchindex


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -