...
Note |
---|
|
Note that this component is now available only in snapshot, not yet included in a ServiceMix release. |
Installation
Simply drop the servicemix-smpp installer zip in an hotdeploy directory monitored by ServiceMix.
Endpoints
Code Block |
---|
lang | xml |
---|
title | Consumer Endpoint |
---|
|
<smpp:consumer service="test:service"
endpoint="endpoint"
host="smpp.example.com"
port="2700"
systemId="user"
password="passwd"/>
|
Code Block |
---|
lang | xml |
---|
title | Provider Endpoint |
---|
|
<smpp:provider service="test:service"
endpoint="endpoint"
host="smpp.example.com"
port="2700"
systemId="user"
password="passwd"/>
|
Info |
---|
title | Consumer endpoint attributes |
---|
borderStyle | solidbgColor='lightblue' |
---|
|
Name | Type | Description | Default |
---|
service | QName | the service name of the endpoint | require to be spec'd | endpoint | string | the endpoint name of the endpoint | require to be spec'd | targetService | QName | the service name of the target endpoint | | targetEndpoint | string | the endpoint name of the target endpoint | | host | string | the SMPP server hostname/IP | require to be spec'd | port | int | the SMPP server port number | 2700 | systemId | string | the SMPP user system ID | require to be spec'd | password | string | the SMPP user password | require to be spec'd | marshaler | class | org.apache.servicemix.smpp.marshaler.SmppMarshalerSupport | DefaultSmppMarshaler |
|
Info |
---|
title | Provider endpoint attributes |
---|
borderStyle | solidbgColor='lightblue' |
---|
|
Name | Type | Description | Default |
---|
service | QName | the service name of the endpoint | require to be spec'd | endpoint | string | the endpoint name of the endpoint | require to be spec'd | targetService | QName | the service name of the target endpoint | | targetEndpoint | string | the endpoint name of the target endpoint | | host | string | the SMPP server hostname/IP | require to be spec'd | port | int | the SMPP server port number | 2700 | systemId | string | the SMPP user system ID | require to be spec'd | password | string | the SMPP user password | require to be spec'd | marshaler | class | org.apache.servicemix.smpp.marshaler.SmppMarshalerSupport | DefaultSmppMarshaler |
|
Marshalers
By default, SMPP endpoints expect (and generate) the content of the message in XML format.
If you want to manipulate different format, you need to define your own marshaler.
Code Block |
---|
lang | xml |
---|
title | SMPP marshaler example |
---|
|
<?xml version="1.0"?>
<beans xmlns:smpp="http://servicemix.apache.org/smpp/1.0"
xmlns:test="http://test">
<smpp:consumer service="test:smpp"
endpoint="endpoint"
host="smpp.example.com"
port="2700"
systemId="test"
password="test">
<property name="marshaler">
<bean class="org.apache.servicemix.smpp.marshaler.OtherSmppMarshaler"/>
</property>
</smpp:consumer>
</beans>
|