Spring Integration: Routing messages by content -
using spring integration:
when message received should go 1 of 4 different channels based on attribute in message. if specific field in message begins a-f should go channel 1, g-m channel 2, etc.
what efficient way this? if can visually represented in sts designer, big plus. lot
as discussed in answes same question on spring forum, efficient pojo router
<router ... ref="myrouter" .../>
where pojo return reference messagechannel
or channel name.
but integration graph won't connect router channels.
you can use <recipient-list-router/>
selector expressions; show nicely in sts, less efficient because expressions evaluated.
Comments
Post a Comment