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

	<int:channel id="input"/>

	<int-event:outbound-channel-adapter id="eventAdapter" channel="input" publish-payload="true"/>

	<int:channel id="inputAdvice"/>

	<int-event:outbound-channel-adapter id="withAdvice" channel="inputAdvice">
		<int-event:request-handler-advice-chain>
			<bean class="org.springframework.integration.event.config.EventOutboundChannelAdapterParserTests$FooAdvice"/>
		</int-event:request-handler-advice-chain>
	</int-event:outbound-channel-adapter>

	<int:chain input-channel="inputChain">
		<int:transformer expression="payload + 'bar'"/>
		<int-event:outbound-channel-adapter/>
	</int:chain>

</beans>
