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

	<util:constant id="jmsConnectionFactory"
				   static-field="org.springframework.integration.jms.ActiveMQMultiContextTests.amqFactory"/>

	<int:channel id="input" />

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

	<int-jms:outbound-gateway request-channel="input" reply-channel="output"
		connection-factory="jmsConnectionFactory"
		request-destination-name="serialized.reply.channel" />

	<int-jms:inbound-gateway request-channel="foo" reply-channel="baz"
		request-destination-name="serialized.reply.channel"
		connection-factory="jmsConnectionFactory"/>

	<int:header-enricher input-channel="foo" output-channel="bar">
		<int:header-channels-to-string />
	</int:header-enricher>

	<int:transformer input-channel="bar" output-channel="baz"
		expression="'echo:' + payload" />

	<int:channel id="baz" />
		
</beans>
