Hi Having some slick configuration for thread pools configuration is on the roadmap for 2.3.
Currently each of the routes will use the number of thread you specify on the consumer, eg in the JMS consumer you have 1 thread by default. The same goes for the VM endpoint. On Mon, Feb 1, 2010 at 2:43 PM, DanD <[email protected]> wrote: > > Hi, I need to control the number of threads processing messages in a camel > route. I'm using the Spring DSL and Apache Camel 2.1.0 for my routes. In a > boiled-down nutshell, my route looks like this. Names of contexts, routes > and endpoints have been changed to protect the innocent =) > > <!-- Used in the deployed system to connect one system to another via JMS > --> > <camelContext id="jms-input"> > <route> > <from uri="jms:queue:some-input-queue"/> > <!-- elided --> > <to uri="vm:common-processor"/> > </route> > </camelContext> > > <camelContext id="common-processing-steps"> > <route> > <from uri="vm:common-processor/> > <!-- A bunch of stuff goes on here, elided --> > <to uri="vm:some-customer-specific-processor-via-recipientList"/> > </route> > </camelContext> > > <camelContext id="some=customer-specific-processor"> > <route> > <from uri="vm:some-customer-specific-processor"/> > <!-- elided --> > </route> > </camelContext> > > I would like to limit threading in this model to two in each of the 3 > routes. > -- > View this message in context: > http://old.nabble.com/Controlling-Threads-tp27404394p27404394.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
