JBoss.orgCommunity Documentation

Chapter 3. Resource Adaptor Implementation

3.1. Configuration
3.2. Default Resource Adaptor Entities
3.3. Traces and Alarms
3.3.1. Tracers
3.3.2. Alarms

The RA implementation uses the SMPP Impl from smppapi poject.

The Resource Adaptor supports configuration only at Resource Adaptor Entity creation time, the following table enumerates the configuration properties:

Table 3.1. Resource Adaptor's Configuration Properties

Property NameDescriptionProperty TypeDefault Value
host The host address of SMSC that this RA Entity should connect to java.lang.Stringlocalhost
port The Port of SMSC that this RA Entity should connect to java.lang.Integer2775
systemId The System ID field for bind request. Used by the SMSC for authentication. java.lang.Stringsmppclient1
systemType Identifies the type of ESME system requesting to bind as a receiver/transmitter/transciever with the SMSC. java.lang.StringESME
password Password field for bind request. Used by the SMSC for authentication. java.lang.Stringpassword
addressTon The type of Address for this ESME, used in BIND request java.lang.Integer1
addressNpi The Number Plan Indicator for this ESME, used in BIND request java.lang.Integer0
addressRange A single ESME address or a range of ESME addresses served via this SMPP receiver/transciever/transmitter session. The parameter value is represented in UNIX regular expression format (see Appendix A) of SMPP Spec 3.4. Set to NULL if not known. java.lang.Integer50
enquireLinkTimeout Interval (in seconds) between the RA entity sending enquire_link requests to test the SMPP session is still live. java.lang.Integer30
smppResponseReceivedTimeout Maximum time (in ms) to wait for a response to an outgoing SMPP request. If this timer fires, a SmppErrorEvent is sent to the application, containing the SMPP request PDU that failed. java.lang.Integer5000
smppResponseSentTimeout Maximum time (in ms) to wait for the application (SBB) to respond to an incoming SMPP request. If this timer fires, a generic_nack PDU is sent to the other node, with status ESME_RSYSERR, and the activity is ended. java.lang.Integer5000

Important

JAIN SLEE 1.1 Specification requires values set for properties without a default value, which means the configuration for those properties are mandatory, otherwise the Resource Adaptor Entity creation will fail!

There is a single Resource Adaptor Entity created when deploying the Resource Adaptor, named SmppRA. The SmppRA entity uses the default Resource Adaptor configuration, specified in Section 3.1, “Configuration”. The SmppRA entity is also bound to Resource Adaptor Link Name SmppRA, to use it in an Sbb add the following XML to its descriptor:.



    
        <resource-adaptor-type-binding>
            <resource-adaptor-type-ref>
                <resource-adaptor-type-name>SMPPResourceAdaptorType</resource-adaptor-type-name>
                <resource-adaptor-type-vendor>net.java</resource-adaptor-type-vendor>
                <resource-adaptor-type-version>5.0</resource-adaptor-type-version>
            </resource-adaptor-type-ref>
            <activity-context-interface-factory-name>slee/resources/smpp/5.0/factoryprovider</activity-context-interface-factory-name>
            <resource-adaptor-entity-binding>
                <resource-adaptor-object-name>slee/resources/smpp/5.0/smppinterface</resource-adaptor-object-name>
                <resource-adaptor-entity-link>SmppRA</resource-adaptor-entity-link>
            </resource-adaptor-entity-binding>
        </resource-adaptor-type-binding>