Connection Pooling can be implemented by the following way.
* A javax.sql.ConnectionPoolDataSource interface that serves as a resource manager connection factory for pooled java.sql.Connection objects. Each database vendors provide the implementation for that interface.
For example, the oracle vendors implementation is as follows: