camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Limiting thread pool size for parallelProcessing?
Date Thu, 14 Aug 2014 06:44:03 GMT
Hi

See also
http://camel.apache.org/threading-model.html

how you can setup thread pools / thread pool profiles etc, and assign
those to the eips and components and whatnot.

On Wed, Aug 13, 2014 at 7:41 PM, efenderbosch
<eric.fenderbosch@segmint.com> wrote:
> Of course, I figure it out 30 minutes after posting. This route works as
> desired:
>
> from("stomp:request_queue").
> bean(new MyGenerator()).
> split(body(), new MyAggregationStrategy()).
> parallelProcessing().executorService(Executors.newFixedThreadPool(4)).
> bean(new MyRunner()).
> end().
> recipientList(simple("stomp:${headers[reply-to]}"));
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Limiting-thread-pool-size-for-parallelProcessing-tp5755185p5755186.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Mime
View raw message