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: Thread pool for Camelcontext
Date Tue, 21 Feb 2012 09:25:43 GMT
Hi

You need to implement
http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/spi/ThreadPoolFactory.html
and then configure camel to use your impl on the ExecutorServiceManager

http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/spi/ExecutorServiceManager.html#setThreadPoolFactory(org.apache.camel.spi.ThreadPoolFactory)

The latter can be auto detected by Camel if you in the Spring XML file
just define your custom thread pool factory.
As these bean types can do that:
http://camel.apache.org/advanced-configuration-of-camelcontext-using-spring.html

On Tue, Feb 21, 2012 at 3:11 AM, achalam <aadi.chalam@gmail.com> wrote:
> Hi,
> We are using camel 2.9 with Springframework3.0.4 and Websphere 7.1 . How do
> we configure, the camel, so that we use the managed threads in the
> application. I know the configuration in spring, to use the workmanager, but
> somehow, not able to understand how it is done in the context of camel.
>
> Thanks,
> Adi
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Thread-pool-for-Camelcontext-tp470625p5500895.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message