There are a number of ways to do it; one would be something like...
Code:
...splitter->sagateway->service------------------->aggregator->transformTo2Lists->splitter->...
| |
|->errorChannel->transformErrors->|
The sagateway would be a <service-activator/> that references a <gateway/> allowing you to insert error handling mid-flow.
Code:
<service-activator ... ref="gw" />
<gateway id="gw" service-interface="foo.GW" default-request-channel="toService" errorChannel="myErrors" />
Gary P. Russell
Spring Integration Team
SpringSource, a division of VMware