Reuse of a chain of endpoints without writing it again
Hi,
Is there a way to "factorize" a <chain> so it can be reused at different other places with different input and output channels?
For example, at different places in my configuration files, I need to do the following:
Code:
<chain id="commonChain">
<header-enricher> ... </header-enricher>
<service-activator> ... </service-activator>
<gateway> ... </gateway>
</chain>
but for different input and output channels.
It would be nice if it was possible to only write something like :
Code:
<chain ref="commonChain" input-channel="channelX" output-channel="channelY" />
anytime I need to do the same chain of endpoints.
Is there currently such a feature I wouldn't be aware of? If not, would it make sense to implement something like that?
Thank you!
-- Pierre