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: How to enable thread pool for Mina Endpoint (consumer)
Date Fri, 19 Apr 2013 05:59:26 GMT
Hi

Ah yeah in the old 2.8.1 its using the default thread pool which as
10-20 as default setting.
You can configure the default thread pool profile to have a higher
values as documented here
http://camel.apache.org/threading-model.html

On Thu, Apr 18, 2013 at 2:18 PM, Claus Ibsen <claus.ibsen@gmail.com> wrote:
> You cannot configure this in camel-mina.
>
> Its using thread pools as recommended by mina project
>
>        final int processorCount =
> Runtime.getRuntime().availableProcessors() + 1;
>
>         ExecutorService acceptorPool =
> getCamelContext().getExecutorServiceManager().newCachedThreadPool(this,
> "MinaSocketAcceptor");
>         ExecutorService connectorPool =
> getCamelContext().getExecutorServiceManager().newCachedThreadPool(this,
> "MinaSocketConnector");
>         ExecutorService workerPool =
> getCamelContext().getExecutorServiceManager().newCachedThreadPool(this,
> "MinaThreadPool");
>
>         IoAcceptor acceptor = new SocketAcceptor(processorCount, acceptorPool);
>         IoConnector connector = new SocketConnector(processorCount,
> connectorPool);
>         SocketAddress address = new
> InetSocketAddress(configuration.getHost(), configuration.getPort());
>
>
>
> On Thu, Apr 18, 2013 at 11:11 AM, Hema T <hema.t@ge.com> wrote:
>> We are using Camel 2.8.1 and Camel-mina.
>>
>> Thanks,
>> Hema
>>
>>
>>
>>
>> --
>> View this message in context: http://camel.465427.n5.nabble.com/How-to-enable-thread-pool-for-Mina-Endpoint-consumer-tp5731059p5731062.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
> --
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> FuseSource is now part of Red Hat
> Email: cibsen@redhat.com
> Web: http://fusesource.com
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message