camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAMEL-1588) ExecutorService configuration
Date Fri, 05 Mar 2010 13:43:44 GMT

    [ https://issues.apache.org/activemq/browse/CAMEL-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58064#action_58064
] 

Claus Ibsen commented on CAMEL-1588:
------------------------------------

Added a threadPool in Spring XML so you can easily define custom pools and use in Camel routes

{code:xml}
    <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">

        <!-- define a custom thread pool -->
        <threadPool id="myPool" poolSize="2" maxPoolSize="4" threadName="myPool"/>

        <route>
            <from uri="direct:start"/>
            <!-- use the custom thread pool in the camel route -->
            <threads executorServiceRef="myOtherPool">
                <to uri="mock:result"/>
            </threads>
        </route>
        
    </camelContext>
{code}

trunk: 919408.

> ExecutorService configuration
> -----------------------------
>
>                 Key: CAMEL-1588
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1588
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-core
>    Affects Versions: 2.0-M1
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.3.0
>
>
> Camel uses some thread pools, for component, endpoint and processor.
> We should have some default configuration that is easy to configure with Camel to adjust
pool sizes for individual/groups/type etc.
> By not they use 5 as the default pool size. And have their own executor unless configured
otherwise.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message