<?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"
	xmlns:amqp="http://www.springframework.org/schema/integration/amqp"
	xmlns:console="http://www.springframework.org/schema/integration/stream"
	xmlns:rabbit="http://www.springframework.org/schema/rabbit"
	xsi:schemaLocation="http://www.springframework.org/schema/integration/amqp https://www.springframework.org/schema/integration/amqp/spring-integration-amqp.xsd
		http://www.springframework.org/schema/integration https://www.springframework.org/schema/integration/spring-integration.xsd
		http://www.springframework.org/schema/integration/stream https://www.springframework.org/schema/integration/stream/spring-integration-stream.xsd
		http://www.springframework.org/schema/rabbit https://www.springframework.org/schema/rabbit/spring-rabbit.xsd
		http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd">

	<amqp:outbound-gateway id="vanilla" request-channel="toRabbit"
		reply-channel="fromRabbit"
		exchange-name="si.test.exchange"
		routing-key="si.test.binding"
		amqp-template="amqpTemplate"/>

	<amqp:outbound-gateway id="expression" request-channel="toRabbit"
		reply-channel="fromRabbit"
		exchange-name="si.test.exchange"
		routing-key-expression="payload.key"
		amqp-template="amqpTemplate"/>

	<console:stdout-channel-adapter id="fromRabbit" append-newline="true"/>

	<rabbit:template id="amqpTemplate" connection-factory="connectionFactory"/>

	<rabbit:connection-factory id="connectionFactory"/>

</beans:beans>
