Here i have classes A,B

List<A> A1=new ArrayList<>(); //some data
List<B> B1=new ArrayList<>(); //some data
List<A> A2=new ArrayList<>(); //some data
List<B> B2=new ArrayList<>(); //some data

Now i am grouping it in another list object

List<List> list=new ArrayList<>();
list.add(A1);
list.add(B1);
list.add(A2);
list.add(B2);

Now i am setting in exchange object and returning

exchange.getIn().setBody(list);

Now My question is the 'list' object which i want to split and send it to a different channels based on each data(class type). i want to send this data to different files(4 files).

Related posts

Recent Viewed