camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marco Crivellaro <marco.cr...@gmail.com>
Subject RecipientList-AggregateTask thread creation
Date Tue, 04 Oct 2011 16:00:04 GMT
I have a route with a recipientList parallel processed and than streamed to
an aggregation strategy:

.recipientList(header("recipientListHeader").tokenize(","))
.parallelProcessing().timeout(30000)
.executorService(customThreadPoolExecutor)
.streaming().aggregationStrategy(new
RecipientAggregationStrategy()).to("direct:chunk.completed");


most of the times the thread used for RecipientAggregationStrategy is the
same through several exchanges hitting the recipienList but from time to
time a new thread is created. I cannot identify any pattern which might
cause a new thread to be created. Can you please explain how camel decides
if a new thread has to be allocated? Will any previous thread be killed?

--
View this message in context: http://camel.465427.n5.nabble.com/RecipientList-AggregateTask-thread-creation-tp4869248p4869248.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message