<?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:poller id="poller" default="true" fixed-delay="50"/>

	<si:channel id="channel1"/>
	<si:channel id="channel2">
		<si:queue capacity="5"/>
	</si:channel>
	<si:channel id="channel3"/>
	<si:channel id="channel4"/>
	<si:channel id="channel5">
		<si:queue capacity="5"/>
	</si:channel>
	<si:channel id="replyChannel">
		<si:queue capacity="5"/>
	</si:channel>

	<si:service-activator input-channel="channel1" ref="testBean" method="duplicate" output-channel="channel2"/>
	<si:service-activator input-channel="channel2" ref="testBean" method="duplicate" output-channel="channel3"/>
	<si:service-activator input-channel="channel3" ref="testBean" method="duplicate"/>
	<si:service-activator input-channel="channel4" ref="testBean" method="duplicate" output-channel="replyChannel"/>

	<bean id="testBean" class="org.springframework.integration.endpoint.TestBean"/>

</beans>
