camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
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 <edwin.rabbitte@gmail.com> 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: http://camel.465427.n5.nabble.com/Question-on-Splitter-Parallel-Processing-tp5729204.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message