srikanthradix
Mar 1st, 2010, 12:52 PM
Why can't I use a simple If condition instead of routers? What is the difference? Ofcourse, a router is also simple but why/when a router is required?
<si:router input-channel="postProcessing" ref="postProcessingRouter" method="route"/>
<bean id="postProcessingRouter" class="com.xx.MessageRouter">
<property name="destinations">
<map>
<entry key="PREVALIDATED" value="prevalidation"/>
</map>
</property>
<property name="defaultDestination" value="toSplit"/>
</bean>
<si:router input-channel="postProcessing" ref="postProcessingRouter" method="route"/>
<bean id="postProcessingRouter" class="com.xx.MessageRouter">
<property name="destinations">
<map>
<entry key="PREVALIDATED" value="prevalidation"/>
</map>
</property>
<property name="defaultDestination" value="toSplit"/>
</bean>