GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  J2EE  >  Core Java
Go To First  |  Previous Question  |  Next Question 
 Core Java  |  Question 404 of 502    Print  
what is connection pooling? what is the main advantage of using connection pooling?

  
Total Answers and Comments: 5 Last Update: November 24, 2009     Asked by: venu prasad 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
June 12, 2007 02:24:14   #1  
sagar kumar        

RE: what is connection pooling? what is the main advan...
whenever our web app needs an access to database it connects to the database. it will be disadvantageous if it connect every time a user sends a request for a particular data.so the server maintains a pool of connection instances. so if a request comes it will take a instance from the pool and serve.because the database connection is tedious task so it is better to maintain a pool of connection instances. it makes the access faster.
 
Is this answer useful? Yes | No
December 17, 2007 05:22:04   #2  
EVER_TRIUMPHANT Member Since: May 2007   Contribution: 1    

RE: what is connection pooling? what is the main advantage of using connection pooling?
in traditional jdbc we are able to create two-tier applcns by creating various DSNs in the localmachine. creating various DSNs for various JDBC applcns may also kill the performance of the JDBC applcn. whereas in JDBC 3.0 we have a concept calllng CONNECTION POOLING through which we can develop three tier applcns without creating any DSNs into the local machine (Connection Pooling is a process of maintaining pool of readily available database connection objects.). This concept comealong with J2EE enabled servers like weblogic websphere etc....
 
Is this answer useful? Yes | No
December 17, 2007 23:00:11   #3  
shaik subhani Member Since: December 2007   Contribution: 12    

RE: what is connection pooling? what is the main advantage of using connection pooling?

Connection pooling is used to improve the performance of an application.here we can create any number of connection objects and keep it in a pool. When we want to use connection object we can take an object from a pool use it .Instead of throwing it out again put into the pool so that you can use it at a later point of time.

if you take weblogic you need DataSource object to get the connection from connection pool.


 
Is this answer useful? Yes | No
February 11, 2008 23:16:19   #4  
sampra Member Since: February 2008   Contribution: 278    

RE: what is connection pooling? what is the main advantage of using connection pooling?
To connecting with any data base need connection and afetr compltion of task that connection get expire so next tim again we need to create connection its degrade the performance
To avoid this we have coonction pooling in the connection pooling we can crete some coonection wn needed take connection use it and afetr that connection will return to the pool...By this way we can increase performance

 
Is this answer useful? Yes | No
November 24, 2009 06:05:58   #5  
aarty.lamba Member Since: November 2009   Contribution: 1    

RE: what is connection pooling? what is the main advantage of using connection pooling?
WebSphere Application Server enables administrators to establish a pool of database connections that can be shared by applications on an application server. Connection pooling spreads the connection overhead across several user requests thereby conserving resources for future requests.

Connection pooling can improve the response time of any application that requires connections especially Web-based applications. When a user makes a request over the Web to a resource the resource accesses a datasource. Most user requests do not incur the overhead of creating a new connection because the datasource may locate and use an existing connection from the pool of connections. When the request is satisfied and the response is returned to the user the resource returns the connection to the connection pool for reuse. Again the overhead of a disconnect is avoided. Each user request incurs a fraction of the cost of connection or disconnecting. After the initial resources are used to produce the connections in the pool additional overhead is insignificant because the existing connections are reused.


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape