camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Question on Splitter Parallel Processing
Date Fri, 15 Mar 2013 07:38:11 GMT
On Thu, Mar 14, 2013 at 7:09 PM, Edwin <> wrote:
> Hi Folks,
> I have a route using a Splitter with parallel processing enabled. The
> exchange contains List<SomeObject> someObjectList and the size of
> someObjectList is five.
> SomeObject contains a property - *id* If the first two elements of the list
> contain the same id, is it possible to process these on the same thread
> (i.e. these two elements are sticky to a certain thread) while the other
> three elements are processed on separete threads?
> Any insights are much appreciated.

I would pre process the message body before hitting the splitter.
eg there you can put together those elements that belong together. eg
in your case 5 elements in the list.
And then put 1+2 together, so the output list has 4 elements.

> Thanks,
> Edwin
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Red Hat, Inc.
FuseSource is now part of Red Hat
Twitter: davsclaus
Author of Camel in Action:

View raw message