camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roman Kalukiewicz" <>
Subject Re: spliting iBatis query result
Date Thu, 27 Dec 2007 10:52:40 GMT
2007/12/26, thiamteck <>:
> hi,
> I am experiment with Camel before use it in production. I start with iBatis
> component. I try to query record from a table via iBatis and then route it
> to another table via iBatis.
> from("ibatis://test.getMsg").to("ibatis://test.insertMsg");
> The problem i face is, "test.getMsg" return an ArrayList of the result
> object, while "test.insertMsg" expecting a individual object instead of
> ArrayList.
> Is there any way to split the ArrayList into multiple objects in the list so
> that the insert statement can work?

Maybe you should simply use splitter? As the message body is already
an array it should be enough to do it this way:



View raw message