Implementing DataDirect connection pooling
- Last Updated: June 5, 2018
- 1 minute read
- DataDirect Connectors
- JDBC
- Aha! 6.0
- Amazon Redshift 6.0
- Apache Cassandra 6.0
- Apache Hive 6.0
- Apache Spark SQL 6.0
- Atlassian Jira 6.0
- Autonomous REST Connector 6.0
- Cloudera Impala 5.1
- + 24
To use connection pooling, an application must use a DataSource object (an
object implementing the DataSource interface) to obtain a connection
instead of using the DriverManager class. A DataSource
object registers with a JNDI naming service. Once a DataSource object is
registered, the application retrieves it from the JNDI naming service in the standard
way.
To implement DataDirect connection pooling, perform the following steps.
-
Create and register with JNDI a Progress DataDirect data source object.
Once created, the
DataSourceobject can be used by a connection pool (PooledConnectionDataSourceobject created in "Creating a driver DataSource object") to create connections for one or multiple connection pools. -
To create a connection pool, you must create and register with JNDI a
PooledConnectionDataSourceobject. APooledConnectionDataSourcecreates and manages one or multiple connection pools. ThePooledConnectionDataSourceuses the driverDataSourceobject created in "Creating the connection pool" to create the connections for the connection pool.