camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Processor thread pool
Date Tue, 16 Oct 2007 17:02:47 GMT
On 15/10/2007, Paulo Ramos <paulo.ramos@multicert.com> wrote:
>
> I want to use Camel to make a procedure test to an application. The test
> program must have configurable number of simultaneous threads.
>
> I have find this example:
> rom("activemq:queue:SOMETHING").pool(5 [min], 15 [max]).process(new
> ExpensiveMessageEnricher()).to("activemq:queue:SOMEWHERE_ELSE");
>
> How i can implement this solution using Spring?
> There is another way?

You can use the <thread> element

<route>
<from uri="activemq:queue:SOMETHING""/>
<thread coreSize="5" maxSize="15"/>
<bean ref="myEnricher"/>
<to uri="activemq:queue:SOMEWHERE_ELSE"/>
</route>

-- 
James
-------
http://macstrac.blogspot.com/

Open Source SOA
http://open.iona.com

Mime
View raw message