Re: start a route at the end of another

2012-12-19 Thread Willem jiang
Hi 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 fo

start a route at the end of another

2012-12-19 Thread Olivier Ziller
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 adv