GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  J2EE  >  Core Java
Go To First  |  Previous Question  |  Next Question 
 Core Java  |  Question 404 of 496    Print  
what is connection pooling? what is the main advantage of using connection pooling?

  
Total Answers and Comments: 4 Last Update: February 11, 2008     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: 11    

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: 279    

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


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape