camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kikou1984 <hichem.ouesl...@atos.net>
Subject Dispatch Array 2 dimension to many routes
Date Mon, 22 Apr 2013 14:37:06 GMT
Hi,

I got this bean: 

public ArrayList<ArrayList&lt;String>> Dispatch(Exchange exchange){
....
ArrayList<ArrayList&lt;String>> lstOflst = new ArrayList <ArrayList
<String>>();
...
exchange.getOut().setBody(lstOflst);
return lstOflst ;
}

lstOflst  is an ArrayList 2 dimension which contains ArrayList<String>.
	        ArrayList <String> lst1 = lstOflst.get(0);
		ArrayList <String> lst2 = lstOflst.get(1);

I want to know which EIP should i use to dispatch only the lst1 to a routeA
and the lst2 to a routeB.

Thxs for u help.







--
View this message in context: http://camel.465427.n5.nabble.com/Dispatch-Array-2-dimension-to-many-routes-tp5731266.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message