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:
but for different input and output channels.
<header-enricher> ... </header-enricher>
<service-activator> ... </service-activator>
<gateway> ... </gateway>
It would be nice if it was possible to only write something like :
anytime I need to do the same chain of endpoints.
<chain ref="commonChain" input-channel="channelX" output-channel="channelY" />
Is there currently such a feature I wouldn't be aware of? If not, would it make sense to implement something like that?