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


		<int:message-history/>

	<bean id="input" class="org.junit.rules.TemporaryFolder" init-method="create" destroy-method="delete"/>

		<int-file:inbound-channel-adapter id="fileAdapter" directory="#{input.root}"
                             auto-startup="true" 
                             channel="outChannel"
                             auto-create-directory="true">
              <int:poller fixed-rate="100"/>
        </int-file:inbound-channel-adapter>
        
        <int:channel id="outChannel">
        	<int:queue/>
        </int:channel>
</beans>
