JDBC
The JDBC resource template represents a JDBC connection that is used by component implementations to access databases.
General
Property | Required? | Editable? | Accepts SVars? | Description |
---|---|---|---|---|
Maximum Connections | N | Y | Y | The maximum number of database connections to allocate. The minimum value that can be specified is 0.
Default: 10. |
Login Timeout (ms) | N | Y | Y |
Time to wait for a successful database connection. If the JDBC driver does not support connection timeouts, the value of this field is ignored. Only JDBC drivers that support connection timeouts use this configuration field. Most JDBC drivers support connection timeouts. Default: 60000 (60 seconds). |
Supports Transactions | N | Y | Y | Indicate whether the application demarcates transaction boundaries. If unchecked, the application does not demarcate transaction boundaries and all SQL statements are autocommitted.
If checked, the application demarcates transaction boundaries. Default: Unchecked. |
Login Credentials
Advanced
GUI | Editable? | Required? | Accepts SVars? | Description |
---|---|---|---|---|
Host Type Properties | Y | N | N | Properties to configure the connection between the JDBC resource and a specific type of host. |
commitBeforeAutocommit | Y | N | N | Indicates whether the driver requires a commit to be performed before enabling auto-commit on a connection. This should be (and is, by default) set to false for compliant drivers to avoid extraneous commits to the database.
Default: false. |
exceptionSorterClass | Y | N | N | The class used by the resource adapter to judge if an exception is fatal to the connection. That is, whether the connection pool should discard the connection from the pool, since it is no longer reusable. As the name implies, the default SQLState08ExceptionsAreFatalSorter treats SQL State 8 exceptions as fatal (connection errors). All other exceptions do not result in any connection pool action (but of course are passed up to the application for it to react as it wishes). The class must implement
org.tranql.connector.ExceptionSorter.
Default: com.tibco.amf.sharedresource.runtime.tibcohost.jdbc.SQLState08ExceptionsAreFatalSorter. |
POOL_MIN_SIZE | Y | N | N | Minimum number of connections in the pool.
Default: 5. |
POOL_BLOCKING_TIMEOUT (ms) | Y | N | N | The length of time a requestor will wait for a connection when the pool is at maximum.
Default: 60000 ms. |
POOL_IDLE_TIMEOUT (min) | Y | N | N | The length of time after which idle connections are closed.
Default: 5 min. |
preparedStatementCacheSize | Y | N | N | The size of the cache containing prepared statements. The size should correspond to the number of JDBC statements you expect your application to reuse.
Default: 0; that is, the cache is disabled. |