<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	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/file https://www.springframework.org/schema/integration/file/spring-integration-file.xsd
		http://www.springframework.org/schema/task https://www.springframework.org/schema/task/spring-task.xsd"
	xmlns:int="http://www.springframework.org/schema/integration"
	xmlns:int-file="http://www.springframework.org/schema/integration/file"
	xmlns:task="http://www.springframework.org/schema/task">


	<int:service-activator input-channel="filesInChannel" output-channel="filesOutChannel">
		<bean class="org.springframework.integration.samples.fileprocessing.FileProcessor"/>
	</int:service-activator>

	<int-file:inbound-channel-adapter id="filesInChannel"
	                              directory="file:input">
	    <int:poller id="poller" fixed-rate="100" task-executor="executor"/>
	</int-file:inbound-channel-adapter>


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

	<task:executor id="executor" pool-size="10"/>
</beans>
