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

	<jms:inbound-channel-adapter destination-name="test" message-converter="testConverter" channel="output1"/>

	<jms:message-driven-channel-adapter destination-name="test" message-converter="testConverter" channel="output2"/>

	<integration:channel id="output1">
		<integration:queue capacity="1"/>
	</integration:channel>

	<integration:channel id="output2">
		<integration:queue capacity="1"/>
	</integration:channel>

	<bean id="jmsConnectionFactory" class="org.springframework.jms.connection.SingleConnectionFactory">
		<constructor-arg>
			<bean class="org.springframework.integration.jms.StubConnection">
				<constructor-arg value="test"/>
			</bean>
		</constructor-arg>
	</bean>

	<bean id="testConverter" class="org.springframework.integration.jms.config.TestMessageConverter"/>

	<integration:poller id="poller" default="true" fixed-delay="500"/>

</beans>
