INTEXT-30 - Add SMPP Support
- migrate old sandbox project - add schema for channel adapters and gateways - change some package structure based on spring integration module package structure
This commit is contained in:
committed by
Gunnar Hillert
parent
2a9608397f
commit
b1f82c7554
@@ -0,0 +1,64 @@
|
||||
<?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 http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
|
||||
http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd
|
||||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
|
||||
">
|
||||
|
||||
|
||||
<context:property-placeholder location="smpp.properties"/>
|
||||
<context:annotation-config/>
|
||||
|
||||
<!-- SENDS SMSs to a specific number -->
|
||||
<bean class="org.springframework.integration.smpp.session.SmppSessionFactoryBean" id="outboundSession">
|
||||
<property name="host" value="${smpp.host}"/>
|
||||
<property name="port" value="${smpp.port}"/>
|
||||
<property name="password" value="${smpp.password}"/>
|
||||
<property name="addressRange" value="${test.dst.number}"/>
|
||||
<property name="systemId" value="${smpp.systemId}" />
|
||||
</bean>
|
||||
|
||||
<!-- RECEIVES SMSs from a specific number-->
|
||||
<bean class="org.springframework.integration.smpp.session.SmppSessionFactoryBean" id="inboundSession">
|
||||
<property name="host" value="${smpp.host}"/>
|
||||
<property name="port" value="${smpp.port}"/>
|
||||
<property name="password" value="${smpp.password}"/>
|
||||
<property name="addressRange" value="33333"/>
|
||||
<property name="systemId" value="${smpp.systemId}" />
|
||||
</bean>
|
||||
|
||||
|
||||
<bean class="org.springframework.integration.smpp.inbound.SmppInboundGateway" id="inboundGateway">
|
||||
<property name="smppSession" ref="inboundSession"/>
|
||||
<property name="requestChannel" ref="in1"/>
|
||||
<property name="replyChannel" ref="out1"/>
|
||||
</bean>
|
||||
|
||||
|
||||
<!--
|
||||
<bean class="org.springframework.integration.smpp.inbound.SmppInboundChannelAdapter" id="smppInboundChannelAdapter">
|
||||
<property name="smppSession" ref="inboundSession"/>
|
||||
<property name="channel" ref="inbound"/>
|
||||
</bean>
|
||||
|
||||
<bean class="org.springframework.integration.smpp.outbound.SmppOutboundChannelAdapter" id="smppOutboundChannelAdapter">
|
||||
<property name="smppSession" ref="outboundSession"/>
|
||||
</bean>-->
|
||||
|
||||
<!--<int:outbound-channel-adapter ref="smppOutboundChannelAdapter" channel="outbound"/>-->
|
||||
|
||||
<int:channel id="out1"/>
|
||||
<int:channel id="in1"/>
|
||||
|
||||
<int:channel id="out2"/>
|
||||
<int:channel id="in2"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</beans>
|
||||
Reference in New Issue
Block a user