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

	<beans:bean id="transactionManager" class="org.springframework.integration.util.TestTransactionManager"/>

	<poller id="poller" fixed-delay="5000">
		<advice-chain>
			<ref bean="adviceBean1"/>
			<beans:bean class="org.springframework.integration.config.xml.TestAdviceBean">
				<beans:constructor-arg value="2"/>
			</beans:bean>
			<ref bean="adviceBean3"/>
			<tx:advice>
				<tx:attributes>
					<tx:method name="*" read-only="true" propagation="REQUIRES_NEW"/>
				</tx:attributes>
			</tx:advice>
		</advice-chain>
	</poller>

	<beans:bean id="adviceBean1" class="org.springframework.integration.config.xml.TestAdviceBean">
		<beans:constructor-arg value="1"/>
	</beans:bean>

	<beans:bean id="adviceBean3" class="org.springframework.integration.config.xml.TestAdviceBean">
		<beans:constructor-arg value="3"/>
	</beans:bean>
	
</beans:beans>
