Table of Contents
If you are interested in the changes and features, that were introduced in earlier versions, please take a look at chapter: Appendix A, Change History
The Spring Integration adapter for SMPP includes two adapters and two gateways:
<itemizedList> <listItem> Inbound Channel Adapter to receive sms from SMSC. </listItem> <listItem> Outbound Channel Adapter to send sms through SMSC. </listItem> <listItem> Inbound Gateway to receive sms from SMSC. </listItem> <listItem> Outbound Gateway to send through SMSC. </listItem> </itemizedList>Spring Integration adapter for SMPP (Short Message Peer-to-Peer) includes inbound channel adapter to receive sms from SMSC (Short Message Service Center), outbound channel adapter to send sms through SMSC, and gateways to send/receive from SMSC.
The Spring Integration Smpp Adapter provides...
To use Spring Integration adapter for SMPP, you have to import the XML namespace. For example, you can have following XML:
<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-smpp="http://www.springframework.org/schema/integration/smpp"
xsi:schemaLocation="http://www.springframework.org/schema/integration
http://www.springframework.org/schema/integration/spring-integration.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/integration/smpp
http://www.springframework.org/schema/integration/smpp/spring-integration-smpp.xsd
">
</beans>
Meanwhile, you have to define your SMSC server information. For example you can define server as following:
//TODO
//TODO: more documentation
Outbound channel adapter is to send sms into SMSC from channels in Spring Integration.
Inbound channel adapter is used to receive sms from SMSC into Spring Integration channel.
Outbound gateway is similar to outbound channel adapter except that it can also be used to get a result on the reply channel after sending.