I am new to spring integration. i have few channels configured in my configuration file as below.
<int:channel id="channelOne" />
<int:channel id="channelTwo" />
<int:channel id="channelThree" />
can i use MessageHandlerChain ( http://static.springsource.org/spring-integration/docs/2.0.0.RC1/reference/html/chain.html ) in this scenario?
Thanks!
A chain is a convenience to simplify configuration when endpoints are connected by direct channels:
Instead of
<int:channel id="foo1"/>
<int:service-activator input-channel="foo1" output-channel="foo2" ref="s1" />
<int:channel id="foo2"/>
<int:service-activator input-channel="foo2" output-channel="foo3" ref="s2/>
<int:channel id="foo3"/>
<int:service-activator input-channel="foo3" output-channel="foo4" ref="s3" />
<int:channel id="foo4"/>
You can use
<int:channel id="foo1"/>
<int:chain input-channel="foo1" output-channel="foo4">
<int:service-activator ref="s1" />
<int:service-activator ref="s2" />
<int:service-activator ref="s3" />
</int:chain>
<int:channel id="foo4"/>
Please use the current documentation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With