This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
In a web application i am using oracleConnectionPoolDatasource class for implementing the connection pool. I am getting connection in a bean using oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection. means i m getting a pooled connection. Please let me know what do we mean by setting of min size and max size AND what happens when load on the server exceeds max limit.
By setting connection pooling, one is acheiving a set of ready to use resources to access the database from the resource pool and giving it back to the pool after completing the job. Usually connection pool size should be less than the maximum connections set in your servlet engine. It has been found that lower settings (10-30 connections) perform better than higher (100+) settings. It is strongly recommended that you code your application to use at most one connection per thread. If you do code your application to require "C" concurrent database connections per thread, then your connection pool must support at least: T * (C - 1) + 1 connections, where "T" is the maximum number of threads.