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

	<int:message-history/>

	<bean id="smbSessionFactory" class="org.springframework.integration.smb.session.SmbSessionFactory">
		<property name="host" value="localhost"/>
		<property name="port" value="0"/>
		<property name="domain" value=""/>
		<property name="username" value="sambagu@est"/>
		<property name="password" value="sambag%uest"/>
		<property name="shareAndDir" value="smb share/"/>
	</bean>

	<int-smb:inbound-channel-adapter id="smbInboundChannelAdapter"
									 session-factory="smbSessionFactory"
									 channel="smbInboundChannel"
									 auto-create-local-directory="true"
									 local-directory="file:test-temp/local-5"
									 remote-directory="test-temp/remote-9"
									 auto-startup="false"
									 delete-remote-files="false">
		<int:poller fixed-rate="1000"/>
	</int-smb:inbound-channel-adapter>

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

</beans>
