2008/10/22 selezovikj <[EMAIL PROTECTED]>: > > <route> > <from uri="jms:topic:LoggingTopic"/> > <to uri="bean:msgParser?concurrentConsumers=5"/> > </route> > > Camel is complaining about the msgParser bean, saying that the > concurrentConsumers propety is not defined.
the concurrentConsumers property is defined on the JMS endpoint BTW > I was wondering what is the correct way to set the number of > concurrentConsumers and maxConcurrentConsumers for a bean ? Its the consuming (from) endpoint which defines concurrency. > When I use the @Service annotation of org.springframework.stereotype.Service > package to denote a bean inside Java, it cannot set concurrentConsumers. The > only thing it provides is the value of the bean. You can set it on the @MessageDriven annotation URI http://activemq.apache.org/camel/pojo-consuming.html -- James ------- http://macstrac.blogspot.com/ Open Source Integration http://fusesource.com/
