JBoss.orgCommunity Documentation
This chapter documents the HTTP Client Resource Adaptor Implementation details, such as the configuration properties, the default Resource Adaptor entities, and the JAIN SLEE 1.1 Tracers and Alarms used.
The name of the RA is HttpClientResourceAdaptor
, its vendor is org.mobicents
and its version is 4.0
.
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 Name | Description | Property Type | Default Value |
---|---|---|---|
HTTP_CLIENT_FACTORY | May be used to provide a class which is responsible for building the HTTP Client. If used the other properties are irrelevant. | java.lang.String | |
MAX_CONNECTIONS_TOTAL | Max total concurrent connections. | java.lang.String | 1000 |
MAX_CONNECTIONS_FOR_ROUTES | Configures the client to override default limit of max concurrent connections for routes, must be a list of hostname:maxConcurrentConnections elements, separated by commas. | java.lang.String |
The SBB Interface exposes the managed HTTP Client, which then allows access to its configuration parameters. Such parameters may be used to configure items such as the protocol version, the encoding charset, etc.
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 HttpClientResourceAdaptor
.
The HttpClientResourceAdaptor
entity is also bound to Resource Adaptor Link Name HttpClientResourceAdaptor
, 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>
HttpClientResourceAdaptorType
</resource-adaptor-type-name>
<resource-adaptor-type-vendor>
org.mobicents
</resource-adaptor-type-vendor>
<resource-adaptor-type-version>
4.0
</resource-adaptor-type-version>
</resource-adaptor-type-ref>
<activity-context-interface-factory-name>
slee/resources/http-client/acifactory
</activity-context-interface-factory-name>
<resource-adaptor-entity-binding>
<resource-adaptor-object-name>
slee/resources/http-client/sbbinterface
</resource-adaptor-object-name>
<resource-adaptor-entity-link>
HttpClientResourceAdaptor
</resource-adaptor-entity-link>
</resource-adaptor-entity-binding>
</resource-adaptor-type-binding>
Each Resource Adaptor Entity uses a single JAIN SLEE 1.1 Tracer, named HttpClientResourceAdaptor
. The related Log4j Logger category, which can be used to change the Tracer level from Log4j configuration, is javax.slee.RAEntityNotification[entity=HttpClientResourceAdaptor]