AS400JDBCManagedConnectionPoolDataSource class

The JDBC connection pool is a managed connection pool that allows you to reuse connections.

The AS400JDBCManagedConnectionPoolDataSource class simplifies connection pool maintenance by eliminating the need for user applications to implement their own management code. The connection pool is used in combination with the JDBC DataSource interface mechanism. The class AS400JDBCManagedConnectionPoolDataSource contains an implementation of the javax.sql.DataSource interface. This class manages the functionality of the connection pooling mechanism and allows you to access it like a normal DataSource. Setting up and using self-managed JDBC connection pool manager involves the usage of Java™ Naming and Directory Interface (JNDI) to bind the connection pool managed datasource. In order for self-managed JDBC connection pooling to function, JNDI is necessary.

These properties allow you to configure the attributes of the connection pool:
  • InitialPoolSize
  • MinPoolSize
  • MaxPoolSize
  • MaxLifetime
  • MaxIdleTime
  • PropertyCycle
  • ReuseConnections
For more information, see the Javadocs on setX() methods where X is the property.