Hi,
but i have attached the header type router to the output channel, in other words whatever the outcome of the outer channel will be further consumed by the header type route and it will fillter on the bais of the incoming headers ...I am sending u the xml code generated by STS.....
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:int="http://www.springframework.org/schema/integration"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schem...ring-beans.xsd
http://www.springframework.org/schema/integration
http://www.springframework.org/schema/integration/spring-integration-1.0.xsd">
<!-- <context:annotation-config/>
<context:component-scan base-package="com.apress.prospringintegration" />
<int:channel id="input" />
<jms:outbound-channel-adapter channel="input" destination-name="requestQueue" /> -->
<!-- <jms:message-driven-channel-adapter channel="output" destination-name="requestQueue" /> -->
<!-- <int:channel id="output">
<int:queue capacity="10" />
</int:channel>
<int:service-activator input-channel="input" output-channel="output" ref="sh" method="handleMessage" />
<bean id="sh" class="com.apress.prospringintegration.MessageHand ler"/>
-->
<int:channel id="input"/>
<int:channel id="output" >
</int:channel>
<int:service-activator input-channel="input"
output-channel="output"
ref="shouter"
method="shout"/>
<bean id="shouter" class="com.apress.prospringintegration.Shouter"/>
<bean id="invact" class="com.apress.prospringintegration.Inventoryac tivator"/>
<bean id="priact" class="com.apress.prospringintegration.Priceactiva tor"/>
<int:header-value-router input-channel="output" header-name="type" ignore-channel-name-resolution-failures="true" >
<int:mapping value="inventory" channel="inventory"/>
<int:mapping value="price" channel="price" />
</int:header-value-router>
<int:channel id="inventory"></int:channel>
<int:channel id="price"></int:channel>
</beans>
Have a look at it...and plz let me know where I went wrong....!!!