Re: Split an exchange, process pieces in parallel and then wait for all to complete

2010-06-10 Thread jonathanq
Thank you for the replies - that is exactly what I wanted. I hadn't dug enough through the Split() documentation to see the parallel processing part. I added the .executorService() part so I could cap the number of threads. Thank you! Jonathan -- View this message in context: http://old.nabb

Re: Split an exchange, process pieces in parallel and then wait for all to complete

2010-06-08 Thread Claus Ibsen
Hi The Camel in Action book chapters 8 and 10 covers the Splitter EIP in detail and how to use it with concurrency as well to split in paralllel. But there is also some bits of details at the Camel wiki page http://camel.apache.org/splitter.html The Splitter has a build in aggregator so it can b

Re: Split an exchange, process pieces in parallel and then wait for all to complete

2010-06-08 Thread Willem Jiang
Hi, Camel splitter supports to process the message parallely. You can use parallelProcessing() dsl to define it from("file://trigger").process(getListOfFilesInDirectoryProcessor()).split(body()).parallelProcessing() ... Willem jonathanq wrote: Hello, I am trying to get my head around how t