uCosminexus Application Server, Expansion Guide
The database session failover functionality is used for implementing 24-hour continuous operation. In order to ensure that there is no impact on the system even if a failure occurs in a database, you must perform settings such as connection failure detection for implementing continuous operation. Consider the time required for recovery and set the value.
For details on connection failure detection, see 3.15.1 Detecting a connection failure in the uCosminexus Application Server Common Container Functionality Guide.
For details on properties to be set in DB Connector and setting methods, see 4.2.2 Defining properties of DB Connector in the uCosminexus Application Server Application Setup Guide.
This subsection describes the properties required to be set in a DB Connector.
This subsection describes the properties set in config-property for each database used. Settings of the database session failover functionality are not required for the properties that are not described in this section.
The following table describes properties to be set when using HiRDB.
Table 6-47 Properties to be set when using HiRDB
| Value to be specified in the config-property-name tag | Value to be specified in the config-property-type tag | Contents or value to be specified in the config-property-value tag | Mandatory/Optional |
|---|---|---|---|
| description | java.lang.String | Specify connection addition information required for connecting to a database. | Mandatory |
| DBHostName | java.lang.String | Specify host name of HiRDB to be connected. | Mandatory |
| loginTimeout | java.lang.Integer | Specify maximum waiting time (seconds) for establishing physical connection with HiRDB server when acquiring Connection objects by using the getConnection method. | Optional |
| LONGVARBINARY_Access | java.lang.String | Specify LOCATOR. | Mandatory |
| PreparedStatementPoolSize | java.lang.Integer | Specify the numeric value determined by 30 x number-of-Web-applications -on-a-J2EE-server-that-use -the-database-session-failover -functionality. | Mandatory |
| CancelStatement | java.lang.Boolean | Specify true. | Mandatory |
| logLevel | java.lang.String | Specify any level for the levels of log trace output by DB Connector. | Optional |
The following table describes properties to be set when using Oracle.
Table 6-48 Properties to be set when using Oracle
| Value to be specified in the config-property-name tag | Value to be specified the in the config-property-type tag | Contents or value to be specified in the config-property-value tag | Mandatory/Optional |
|---|---|---|---|
| databaseName | java.lang.String | Specify a specific database name (SID) on Oracle server. | Mandatory# |
| serverName | java.lang.String | Specify host name or IP address of Oracle server. | Mandatory# |
| portNumber | java.lang.Integer | Specify a port number that listens to requests from Oracle server. | Mandatory# |
| url | java.lang.String | Specify JDBC URL required by Oracle JDBC Thin Driver for connecting to a database. | Mandatory# |
| loginTimeout | java.lang.Integer | Specify a timeout (units seconds) for connection trial to database. | Optional |
| PreparedStatementPoolSize | java.lang.Integer | Specify the numeric value determined by 30 x <number of Web applications on a J2EE server that uses the database session failover functionality>. | Mandatory |
| logLevel | java.lang.String | Specify any level for the levels of log trace output by DB Connector. | Optional |
The following table describes the properties to be set in the property tag. Settings of the database session failover functionality are not required for the properties that are not described in this section.
Table 6-49 Properties to be specified in the property tag
| Value to be specified in the property-name tag | Value to be specified in the property-type tag | Value of the property-default-value tag | Contents or value to be specified in the property-value tag | Mandatory/Optional |
|---|---|---|---|---|
| MaxPoolSize | int | 10 | Specify maximum value of connection pool#1. | Mandatory |
| MinPoolSize | int | 10 | Specify minimum value of connection pool#1. | Mandatory |
| LogEnabled | boolean | true | Specify true. | Mandatory |
| User#2 | String | -- | Specify a user name. | Mandatory |
| Password | String | -- | Specify a password. | Mandatory |
| ValidationType | int | 1 | Specify 1. | Mandatory |
| RetryCount | int | 0 | Specify connection acquisition retry count. Specify a value, in accordance with the database settings and network environment that enables recovery of a database when a failure occurs. |
Optional |
| RetryInterval | int | 10 | Specify connection acquisition retry interval. Specify a value, in accordance with the database settings and network environment that enables recovery of a database when a failure occurs. |
Optional |
| RequestQueueEnable | boolean | true | Specify true. | Mandatory#3 |
| RequestQueueTimeout | int | 30 | Specify maximum value that can stop the queue waiting for connection acquisition when connections exhaust.#4 | Mandatory#3 |
| WatchEnabled | boolean | true | Specify whether you want to enable connection pool monitoring. | Optional |
| WatchInterval | int | 30 | Specify connection pool monitoring interval. | Optional |
| WatchThreshold | int | 80 | Specify threshold value that monitors connection pool use status. | Optional |
| WatchWriteFileEnabled | boolean | true | Specify true. | Optional |
All Rights Reserved. Copyright (C) 2013, 2015, Hitachi, Ltd.