camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem jiang <>
Subject Re: start a route at the end of another
Date Thu, 20 Dec 2012 03:05:27 GMT
The pulled files are processed one by one, so you camel route doesn't know who many files
are processed.
But you should be able to access the Exchange property like  
Exchange.BATCH_INDEX, Exchange.BATCH_SIZE, Exchange.BATCH_COMPLETE in the onCompletion method.
Then you can write some log for it.

Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: |
Blog: ( (English)
 ( (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem

On Thursday, December 20, 2012 at 5:24 AM, Olivier Ziller wrote:

> Hello,
> i have a route that reads a directory and process a number of files  
> contained in this directory.
> i would like to log the number of files at the end of the processing of  
> the directory.
> i tried to use oncompletion but it's called for each file.
> any idea on how to do that?
> thanks in advance  

View raw message