Message goes in from "comp.toRouter" and based upon the Type of message, it gets routed to comp.toMultipleChannels or comp.broadcast.Code:<si:publish-subscribe-channel id="comp.toMultipleChannels"/> <si:router input-channel="comp.toRouter" ref="comp.router" method="route"/> <bean id="comp.router" class="com.xxx.MessageTypeRouter"> <property name="name" value="oms.postProcessingRouter"/> <property name="destinations"> <map> <entry key="TYPE1" value="comp.toMultipleChannels"/> <entry key="TYPE2" value="comp.toMultipleChannels"/> <entry key="TYPE3" value="comp.toMultipleChannels"/> <entry key="TYPE4" value="comp.toMultipleChannels"/> <entry key="TYPE5" value="comp.toMultipleChannels"/> </map> </property> <property name="defaultDestination" value="comp.broadcast"/> </bean> <si:bridge input-channel="comp.toMultipleChannels" output-channel="comp.broadcast"/> <si:bridge input-channel="comp.toMultipleChannels" output-channel="comp.toQueue"/>
We are currently using a publish-subscribe channel. Is there any other way to put the message into multiple channels other than publish-subscribe channel?
If not, does subscribed channel(comp.broadcast/comp.toQueue) start a new thread when it is reading from the published channel(comp.toMultipleChannels)?


Reply With Quote
