Connection Pooling feature added in jdbc2 where no need to load the driver, create the connection in code.
This connection can be created on the web/application server which java application will get based On the server specified no of connection.
It will avoid overhead of establishing connection. There are administered objects to manage the database connections, to Provide connection sharing, security. Datasource is Administrated factory object that provides connections from connection pools.
to fetch the connection from connection pool to the java application.
Datasource also Binds to JNDI and need to be configured.
From novice to tech pro — start learning today.