Hi

I have a scenario where I am calling two different legacy systems (IBM Mainframe & DB2). I just want to ensure I am using effective way in spring integration implementation. Please see my scenario below

1)
<!-- IBM Mainframe Call Chain -->
<int:chain input-channel="XXXInputChannel"
output-channel="XXXOutputChannel">

<int-ws:outbound-gateway uriXXX....>

</int:chain>
<!-- End of IBM Mainframe call -->

<!--JDBC Call -->
<int:chain input-channel="XXXOutputChannel" output-channel="XXXOtherOutputChannel">
<int-jdbc:outbound-gateway ...>
<!-- End of JDBC Call -->

What I want to do is,

Output of first chain (IBM mainframe call) will return a collection of objects (ArrayList), and I need to make multiple JDBC (second chain) calls as many times of the objects in the collection and I need to aggregate responses of this JDBC chain responses.

Please advice right way of doing it.


Regards
Ashok Gudise