6.2.1 Application procedures
This section describes preparations and various settings in environment setup required for using the database session failover functionality. The following figure shows the application procedures for the database session failover functionality.
|
|
Start a J2EE application after implementing preparations and various settings in environment setup in accordance with the application procedures shown in this figure.
- Organization of this subsection
(1) Preparing environment setup
The following table describes implementation contents and reference locations of the items to be implemented as preparations of environment setup when using the database session failover functionality.
|
Implementation sequence |
Implementation item |
Implementation contents |
Reference location |
|---|---|---|---|
|
1 |
Checking prerequisites |
Check configuration and settings that are prerequisites. |
|
|
2 |
Estimating the size of HTTP session attribute information |
Estimate the size of HTTP session attribute information. The estimated value is required for environment settings of a database. |
(2) Settings of the database session failover functionality
The following table describes settings and reference locations of the settings of the database session failover functionality.
|
Setting sequence |
Setting item |
Settings |
Reference location |
|---|---|---|---|
|
1 |
J2EE server settings |
Perform the following:
|
|
|
2 |
Web application settings# |
Specify the following:
|
# Implement the settings of a Web application in a development environment. If you want to perform settings of a Web application in the execution environment by using server management commands, see 6.6.2 Web application settings.
(3) Preparing a database
The following table describes implementation contents and reference locations of the items to be implemented as preparations of a database when using the database session failover functionality.
|
Implementation sequence |
Implementation item |
Implementation contents |
Reference location |
|---|---|---|---|
|
1 |
Creating tables |
|
|
|
2 |
Environment setup of database |
Specify the following:
|
(4) DB Connector settings
The following table describes settings and reference locations of DB Connector settings required for using the database session failover functionality.
|
Setting sequence |
Setting item |
Settings |
Reference location |
|---|---|---|---|
|
1 |
DB Connector settings |
Soecify the following:
|
(5) Note
If you use HiRDB as a database, make sure that automatic commit is enabled. If automatic commit is disabled, an error occurs when an SQL statement is executed in the database session failover functionality.