You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by alodde <an...@lod2e.de> on 2010/11/22 13:49:56 UTC

process several instances of one route in parallel

Hello everybody,

I am using camel 2.2 and like to process two instances of a single route in
parallel. Currently I am using the <camel:threads> processor to achieve
this. In cause an exception occurs the whole route should be processed once
again. The exception handling and the restart of the route is defined in an
onException clause.  Everything works fine as long I do not use the threads
processor. 

This is the exception clause I currently using. The dummy queue is not
defined. The actually used queue will is set by computeQueue. 

<camel:onException>
	<camel:exception>some.Exception</camel:exception>
	<camel:handled>
		<camel:constant>true</camel:constant>
	</camel:handled>
        <camel:bean ..."computeQueue"/>
	<camel:to uri="activemq:queue:dummy"/>
</camel:onException>


Does anybody have an idea what could be the problem? I also have some
problems to get information about the threads processor. Or is there any
other processor, which I could use instead of <threads>?

Thx for you help.

-- 
View this message in context: http://camel.465427.n5.nabble.com/process-several-instances-of-one-route-in-parallel-tp3275297p3275297.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: process several instances of one route in parallel

Posted by "Willem.Jiang" <wi...@gmail.com>.
Hi, 

Can I have a look at your route configure?
What's the stack trace when you add <threads> definition ?

I can tell nothing until you answer my upper questions.

-- 
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang 
-- 
View this message in context: http://camel.465427.n5.nabble.com/process-several-instances-of-one-route-in-parallel-tp3275297p3277878.html
Sent from the Camel - Users mailing list archive at Nabble.com.