Wednesday, 21 May 2014

Explain connection pooling in java

  • In connection pooling several context instances have been created for the same database.
  • As application server starts a pool of connection object has been created 
  • These objects are managed by pool manager
  • Pool manager provides context instance as the request comes and when the context instance is done with connection, it is retured in the pool for future use
  • The JDCConnectionPool.java class is use to provide connections available to calling program in its getConnection method. This method searches for a connection and if not available then a new connection is created. 

No comments:

Post a Comment