uCosminexus Application Server, Application Setup Guide
Define the properties for connecting to the resource adapter compliant with Connector 1.5 specifications.
You can also define the properties of the resource adapter after deploying the J2EE resource adapter. Note that if you want to change the properties of a resource adapter that is already set, change the properties when the applicable resource adapter is not running.
For an overview of the property setup procedures, see 3.5 Property settings using the property file. The following subsections define the resource adapter properties:
HITACHI Connector Property file
Execute the following command to acquire the Connector property file of the resource adapter:
cjgetresprop [server-name] [-nameserver provider-URL] -type rar -resname display-name-of-the-resource-adapter -c path-of-Connector-attribute-file |
cjgetresprop MyServer -type rar -resname Rar1 -c AccountProp.xml
Execute the following command to apply the values of the HITACHI Connector Property file:
cjsetresprop [server-name] [-nameserver provider-URL] -type rar -resname display-name-of-the-resource-adapter -c path-of-Connector-attribute-file |
cjsetresprop MyServer -type rar -resname Rar1 -c AccountProp.xml
A resource adapter compliant with Connector 1.5 specifications might include multiple connection definitions.
Specify the following property settings:
The following sections describe the settings for the resource adapter properties:
The following table describes the settings for the configuration properties (<resourceadapter> - <config-property> tag) of the resource adapter:
| Items | Corresponding tags |
|---|---|
| Configuration property name | <config-property-name> |
| Configuration property data type | <config-property-type> |
| Configuration property value | <config-property-value> |
Repeat the above settings for all the configuration properties that you want to define.
For the configuration property name (<config-property-name>) to be defined, see 4.2.2 Defining the DB Connector properties.
The following table describes the settings for the Outbound resource adapter properties (<outbound-resourceadapter> tag):
| Items | Mandatory | Corresponding tags |
|---|---|---|
| Property settings for each connection#1 | Y | <connection-definition> |
| Transaction support level#2 | O | <transaction-support> |
| Scope of re-authentication support | O | <reauthentication-support> |
For details on the property settings, see 4.1.1 Contents of the HITACHI Connector Property file in the uCosminexus Application Server Application and Resource Definition Reference Guide.
The following table describes the settings for the Inbound resource adapter properties (<inbound-resourceadapter> - <messageadapter> - <messagelistener> tag):
| Items | Corresponding tags |
|---|---|
| Message listener type | <messagelistener-type> |
| Information about ActivationSpec | <activationspec> |
The following table describes the property settings for the administered objects (<adminobject> - <config-property> tag) of the resource adapter:
| Items | Corresponding tags |
|---|---|
| Property name of the administered object | <config-property-name> |
| Property data type of the administered object | <config-property-type> |
| Property value of the administered object | <config-property-value> |
The following table describes the settings for runtime properties (<resourceadapter-runtime> - <property> tag) of the resource adapter:
| Items | Corresponding tags |
|---|---|
| Property name | <property-name> |
| Property data type | <property-type> |
| Property value | <property-value># |
Repeat the above settings for all the properties that you want to define.
Specify the following settings in the property name (<property-name>):
| Property items | Item name of property name (<property-name>) |
|---|---|
| Maximum number of threads executed concurrently in the thread pool | MaxTPoolSize |
| Minimum number of threads in the thread pool | MinTPoolSize |
| Value of a timeout until a thread is released from the thread pool (seconds) | TPoolKeepalive |
For details on the property settings, see 4.1.1 Contents of the HITACHI Connector Property file in the uCosminexus Application Server Application and Resource Definition Reference Guide.
The property settings for each Outbound resource adapter connection are described as follows:
The following table describes the settings for the configuration properties (<outbound-resourceadapter> - <connection-definition> - <config-property> tag) of the Outbound resource adapter:
| Items | Corresponding tags |
|---|---|
| Configuration property name | <config-property-name> |
| Configuration property data type | <config-property-type> |
| Configuration property value | <config-property-value> |
Repeat the above settings for all the configuration properties that you want to define.
For the configuration property name (<config-property-name>) to be defined, see 4.2.2 Defining the DB Connector properties.
Note that the configuration properties for each connection combine the configuration properties specified for each connection (<outbound-resourceadapter> - <connection-definition> - <config-property> tag) and the configuration properties specified for the resource adapter (<resourceadapter> - <config-property> tag). If the same configuration property name is specified, the priority will be given to the configuration property specified for each connection.
The following table describes the settings for runtime properties (<outbound-resourceadapter> - <connection-definition> - <connector-runtime> tag) of Outbound resource adapters:
| Items | Corresponding tags |
|---|---|
| Property name | <property-name> |
| Property data type | <property-type> |
| Property value | <property-value> |
Repeat the above settings for all the properties that you want to define.
For details on the runtime property names (<property-name>) to be defined and operations and precautions for the connection pool, see 4.2.2 Defining the DB Connector properties.
The following table describes the settings for optional name information (<outbound-resourceadapter> - <connection-definition> - <connector-runtime> - <resource-external-property> tag) of Outbound resource adapters:
| Items | Mandatory | Corresponding tags |
|---|---|---|
| Optional name of the resource | Y | <optional-name> |
| Resource authentication method | O | <res-auth> |
| Scope of resource sharing | O | <res-sharing-scope> |
For details on the property settings, see 4.1.1 Contents of the HITACHI Connector Property file in the uCosminexus Application Server Application and Resource Definition Reference Guide.
For details on how to use the optional name of the resource adapter, see 4.8 Referencing and changing the resource adapter names registered in the JNDI name space.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.