<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/integration"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:beans="http://www.springframework.org/schema/beans"
	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">

	<channel id="numbers"/>
	<channel id="splits"/>
	<channel id="results">
		<queue capacity="10"/>
	</channel>

	<splitter ref="splitter" method="split" input-channel="numbers" output-channel="splits"/>
	<aggregator ref="aggregator" method="sum" input-channel="splits" output-channel="results"/>

	<beans:bean id="splitter" class="org.springframework.integration.router.config.NumberSplitter"/>
	<beans:bean id="aggregator" class="org.springframework.integration.router.config.NumberAdder"/>

</beans:beans>
