Hi See about the batch completed property you can use to know when the batch of files is complete http://camel.apache.org/batch-consumer.html
And this has been debated before on these forums so you can make search and find that. On Thu, Jul 3, 2014 at 5:25 PM, zzkozak <[email protected]> wrote: > I wrote the following route and expected that the bean 'teaserService' should > be called only one time, at the end of processing of all files, but ... it's > called after processing of each file: > > How to achieve such a behavior? > > Thanks > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/How-to-call-a-bean-after-all-files-has-been-processed-tp5753293.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/
