Hi Guys,
Suppose I have 3 different channels, which come from 3 different sources: ChannelA, ChannelB and ChannelC, and I want each channel to go to some endpoint, say a ServiceActivator:
Now, I'd like to filter each Channel using the same filter method - I could do this like below, where I have 3 new channels, and 3 filters, doing the same thing:Code:<integration:channel id="ChannelA" /> <integration:service-activator input-channel="ChannelA" method="m" ref="bean" /> <integration:channel id="ChannelB" /> <integration:service-activator input-channel="ChannelB" method="m2" ref="bean" /> <integration:channel id="ChannelC" /> <integration:service-activator input-channel="ChannelC" method="m3" ref="bean" />
Which seems a bit bloated.Code:<integration:filter input-channel="ChannelA" method="validate" ref="validator" output-channel="validChannelA" /> <integration:filter input-channel="ChannelB" method="validate" ref="validator" output-channel="validChannelB" /> <integration:filter input-channel="ChannelC" method="validate" ref="validator" output-channel="validChannelC" />
What I'd like to do instead of the above, is something like this, which I don't think is currently possible:
Is there a way to create that type of flow? Ultimately, I'd like to be able to specify whether or not a channel should be intercepted and filtered via either a channel name convention, or by supplying a list of filtered channels (comma separated in the pattern).Code:<integration:channel-interceptor pattern="Channel*"> <integration:filter method="validate" ref="validator" /> </integration:channel-interceptor>
Any suggestions will be much appreciated,
Thanks,
Pete


Reply With Quote
. It plays a bit diffenrent role with <filter>.
