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

	<import resource="classpath:smppConnection-context.xml"/>

	<bean id="session"
		class="org.springframework.integration.smpp.session.SmppSessionFactoryBean">
		<property name="host" value="${smpp.host}" />
		<property name="port" ref="smppPort" />
		<property name="password" value="${smpp.password}" />
		<property name="systemId" value="${smpp.systemId}" />
		<property name="bindType" value="BIND_TX" />
	</bean>

	<bean id="adapter"
		class="org.springframework.integration.smpp.outbound.SmppOutboundGateway">
		<property name="smppSession" ref="session" />
	</bean>

	<int:channel id="outboundSms" />

	<int:outbound-channel-adapter channel="outboundSms" ref="adapter" />
</beans>
