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

	<beans:bean id="integrationHeaderChannelRegistry"
				class="org.springframework.integration.channel.DefaultHeaderChannelRegistry">
		<beans:constructor-arg value="100"/>
	</beans:bean>

	<channel id="output">
		<queue/>
	</channel>

	<control-bus input-channel="input" output-channel="output" send-timeout="100" order="1" auto-startup="true" use-registry="true"/>

	<beans:bean id="service" class="org.springframework.integration.config.xml.ControlBusTests$Service" />

	<router id="router" expression="headers['channel']" input-channel="routerIn">
		<mapping value="foo" channel="bar" />
		<mapping value="baz" channel="qux" />
	</router>

	<channel id="bar" />

	<channel id="qux" />

</beans:beans>
