2007/12/26, thiamteck <[EMAIL PROTECTED]>:
>
> 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:
from("ibatis://test.getMsg").splitter(body()).to("ibatis://test.insertMsg");
Roman