Database connection properties
The Gateway can be configured to connect to the database. It has internal database
connections that are used for operations such as:
- Marking incoming and outgoing trackable item file records as complete.
- Inserting and updating WIP records in the GW_FILE_STAT table.
- Inserting performance data into the database.
- Loading records into the database in support of the direct load feature of Gateway.
- Gateway duplicate checking.
Notes:
- Either the Db2® server or the Db2 client package needs to be installed and properly configured.
- To avoid problems when you are running Gateway Server, user exits must not use these internal database connections to connect to the database.
Table 1 shows the database properties for Gateway Server and Table 2 shows the
database properties for Gateway Server duplicate checking.
| Property | Values or examples | Description |
|---|---|---|
| dbConnectURL | jdbc:db2://localhost:50000/FTMDB |
FTM database name. Use a database that is available on the Transaction Server, such as, MYFTMDB, or refer to a database on another server by using the full URL. A full
URL is specified as jdbc:db2://dbserver.example.com[:port]//MYFTMDB where:
Notes:
|
| dbConnectSchema | FTM | The name of the schema for the database. |
| dbConnectCacheSize | 6-100 | The number of Db2 connections that are allowed for Gateway. These
connections are used to write to the database, such as for Gateway transmission status updates
and for logging. If the number of transmission processing threads or Business Rules threads is
increased, the number of database connections also needs to be increased. These Db2 connections are pooled. When an insufficient number of connections are in the pool, a message that indicates that more connections are needed is logged. The Gateway duplicate detect threads have their own pool of database connections and do not need to be included in the value for this property. Gateway automatically pools a Db2 connection for every duplicate detect thread that is configured. The default value for this property is 30. |
| dbConnectId | UserID | User ID that is used to connect to the database. |
| dbConnectPwd | UserPwd | User password that is used to connect to the database. |
| dbConnectRefreshTimer | 0 (seconds) | When a database connection is idle for the specified time period, the Gateway Server refreshes all database connections in the connection pool at every dbConnectRefreshTimer interval. If the value is set to zero, this function is disabled. The range of this value is 0 - 36000 seconds. |
| dbConnectionMode | standard | Configures the Gateway Server to use a specific type of database
connection. The available database connection types are shown in the following list:
|
| dbConnectionRefreshTimer | 2 hours | After a database connection is idle for this amount of time, the Gateway Server checks if the connection must be refreshed. Database connections need to be refreshed if the connection is closed or if its remote connection was ended by a system timeout. If the Gateway Server determines that a database connection needs to be refreshed, the old database connection is discarded and replaced with a new one. |
| dbKeyStoreFormat |
|
The keystore type of the keystore file. |
| dbKeyStorePassword | The password used to access the keystore. | |
| dbLoginTimeout | 1000 | The maximum amount of time, in seconds, that a driver can wait when it attempts to log in to a database. |
| dbTrustStoreFormat |
|
The truststore type of the truststore file. |
| dbTrustStorePassword | The password used to access the truststore. | |
| enableSQLCheckData | true/false | Use this property only when directed to by IBM® Support. |
The following table shows the database properties for Gateway Server duplicate checking. If
these properties are not defined, the properties in Table 1 are used.
| Keywords | Values or examples | Description |
|---|---|---|
| auxDbConnectURL | jdbc:db2://localhost:50000/FTMDB |
FTM database name. Use a database that is available on the Transaction Server, such as, MYFTMDB, or refer to a database on another server by using the full URL. A full
URL is specified as jdbc:db2://dbserver.example.com[:port]//MYFTMDB where:
Notes:
|
| auxDbConnectSchema | FTM | The name of the schema for the database. |
| auxDbConnectCacheSize | 0 - 40 | The minimum number of connections to keep open for writing to the FTM database. |
| auxDbConnectId | UserID | User ID that is used to connect to the database. |
| auxDbConnectPwd | UserPwd | User password that is used to connect to the database. |
| auxEnableSSL | true/false | Indicates whether Gateway Server uses SSL authentication to connect to the Java™ Platform, Enterprise Edition EJB component. |