<?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:si="http://www.springframework.org/schema/integration"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
			https://www.springframework.org/schema/beans/spring-beans.xsd
			http://www.springframework.org/schema/integration
			https://www.springframework.org/schema/integration/spring-integration.xsd">

	<si:channel id="input"/>

	<si:channel id="strings">
		<si:queue/>
	</si:channel>

	<si:channel id="discard">
		<si:queue/>
	</si:channel>

	<bean id="payloadTypeRouter" class="org.springframework.integration.router.PayloadTypeRouter">
		<property name="resolutionRequired" value="true"/>
		<property name="channelMappings">
			<map>
				<entry key="java.lang.String" value="strings"/>
			</map>
		</property>
	</bean>

	<si:router id="router"
		ref="payloadTypeRouter"
		input-channel="input"
		default-output-channel="discard"/>

</beans>
