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 components in Camel
Date Mon, 10 Oct 2011 07:32:54 GMT
On Sun, Oct 9, 2011 at 6:14 PM, diwakar <diwakar.jois@nsn.com> wrote:
> Hi,
>
>        <from uri="file:input"/>
>         <threads corePoolSize="10">
>         <log message="Copying ${file:name} to the output directory"/>
>         <to uri="file:output"/>
>         </threads>
>
>        With this we can have 10 threads for the logging and the file
> writing indpoints. But how to configure 10 threads for the poller
> (file:input)?
>        Please let me know your comment.
>

The file is a single threaded scheduled consumer, so you cannot
configure it to use more threads.
Using the <threads> is the way to increase concurrency on file processing.


> With Bets Regards,
> Diwakar
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Thread-pool-for-components-in-Camel-tp4722190p4885604.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