Hi See more details here http://camel.apache.org/threading-model.html
On Mon, Aug 22, 2011 at 7:14 AM, diwakar <diwakar.j...@nsn.com> wrote: > Hi, > > In Servicemix we can configure thread pools for components: > servicemix.corePoolSize = 32 > servicemix.maximumPoolSize = 128 > In camel, how can I configure thread pool for components? From > documentation parallelProcessing, executorServiceRef options can be set to > configure thread pools. But these options do not exist for all components. > <route> > <from uri="file:input"/> > <log message="Copying ${file:name} to the output directory"/> > <to uri="file:output"/> > </route> > In the above example, how can I configure thread pool for file > component to have multiple threads to poll the "input" folder? > Please let me know your comment. > The file consumer is using a scheduled thread pool to trigger to run every Xth period (you can configure the period). Its a single threaded task. You cannot run that in parallel. For that you can enable the threads DSL in the route. <from uri="file:input"/> <threads corePoolSize="10"> <log message="Copying ${file:name} to the output directory"/> <to uri="file:output"/> </threads> See this blog entry http://davsclaus.blogspot.com/2009/05/on-road-to-camel-20-concurrency-with.html And this page as well http://camel.apache.org/async > With Best Regards, > Diwakar > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Thread-pool-for-components-in-Camel-tp4722190p4722190.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/