<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:si="http://www.springframework.org/schema/integration"
	xmlns:jdbc="http://www.springframework.org/schema/jdbc"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.springframework.org/schema/jdbc https://www.springframework.org/schema/jdbc/spring-jdbc.xsd
			http://www.springframework.org/schema/integration https://www.springframework.org/schema/integration/spring-integration.xsd
			http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd">

	<si:channel id="target">
		<si:queue />
	</si:channel>

	<si:poller default="true" fixed-delay="100">
		<si:transactional/>
	</si:poller>

	<jdbc:embedded-database type="HSQL" id="dataSource">
		<jdbc:script location="org/springframework/integration/jdbc/config/inboundSchema.sql" />
	</jdbc:embedded-database>

	<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
		<property name="dataSource" ref="dataSource"/>
	</bean>

	<bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
		<constructor-arg ref="dataSource" />
	</bean>

</beans>
