File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Using DriverManager versus Connection Pooling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Using DriverManager versus Connection Pooling" Watch "Using DriverManager versus Connection Pooling" New topic
Author

Using DriverManager versus Connection Pooling

Rishi Kant
Greenhorn

Joined: Apr 18, 2000
Posts: 18
Lot has been said about the advantages of using Connection Pooling in JDBC 2.0.
In our application, we have tried both options..using datasource and connection pooling and using DriverManger.getConnection().We have found that the second option ie DriverManager.getConnection() is faster and more reliable.When using datasource.getConnection() we had frequently encountered ConnectionWaitTimeout exception..also the application sometimes becomes very slow.We are using Oracle 8.x for database.Since ours is a large organization,changing the adminstrator options for the datasource,like increasing the size of connections in a pool, would be the last option to be considered.
We are using Websphere as our application server.
Also we are not using EJBs,we are using jsp and beans for database access.
Any thoughts/comments from the members of this forum would be very helpful.
Thanks

[This message has been edited by Rishi Kant (edited August 02, 2001).]
[This message has been edited by Rishi Kant (edited August 02, 2001).]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Using DriverManager versus Connection Pooling
 
Similar Threads
JNDI design question
Using DataSource in EJB
Connection pooling
whether this architecture is feasible!!!!!!! to mike, tony and matthew ....sheriffs
How to access JNDI DS from outside the container?