camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kikou1984 <>
Subject Splitter with option
Date Mon, 04 Feb 2013 13:54:54 GMT

I want to know if i can configure a splitter.
Here an exemple :

public static ArrayList <ArrayList <CLASS A>> methodTosplit(@Headers final
Map<String, Object>     headers,Exchange exchange) {
    ArrayList <ArrayList <CLASS A>> eclatLst = new ArrayList <ArrayList
    return eclatLst;

In the main prog:

		.method(myClass, "methodTosplit")
		.bean(myClassA, "methodA")
		.bean(myClassB, "methodB");

So i can split the ArrayList <ArrayList <CLASS A>>  into many ArrayList
<CLASS A> for each bean (myClassA, myClassB).
However , can i split some ArratList into the bean bean(myClassA, "methodA")
and not the other bean(myClassB, "methodB").

Here an exemple:
We suppose,  ArrayList <ArrayList <CLASS A>> got two ArrayList <CLASS A>.
So the prog will split the first  ArrayList <CLASS A> to bean myClassA,
myClassB. Then the second ArrayList <CLASS A> to the bean myClassA,

How can i configure the splitter, to get this for exemple :
the first  ArrayList <CLASS A> to the bean myClassA only , Then the second
ArrayList <CLASS A> to the bean myClassB only.

I got a lead , using the Headers, but the context still the same for the

has anybody got an idea here? 



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

View raw message