JDBC connection pooling¶
JDBC connection pooling is a resource management technique used in Java applications to optimize the process of obtaining database connections. It is implemented through a JDBC datasource, an object bound to a JNDI tree that provides access to a pool of these connections.^[600-developer__java__application-server__weblogic__weblogic-jdbc.md]
Architecture¶
In this architecture, applications do not create new connections for every request. Instead, they query the JNDI tree to locate the datasource object. Once located, the application borrows a connection from the pool maintained by the datasource, performing database operations before returning the connection.^[600-developer__java__application-server__weblogic__weblogic-jdbc.md]
Benefits¶
The primary advantage of connection pooling is efficiency; reusing existing connections significantly reduces the overhead associated with establishing physical database connections.^[600-developer__java__application-server__weblogic__weblogic-jdbc.md]
Sources¶
^[600-developer__java__application-server__weblogic__weblogic-jdbc.md]