File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes JDBC driver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "JDBC driver" Watch "JDBC driver" New topic

JDBC driver

trupti nigam
Ranch Hand

Joined: Jun 21, 2001
Posts: 614

How can I find out which JDBC driver is being used in my project?

Abhinav Srivastava
Ranch Hand

Joined: Nov 19, 2002
Posts: 354

In a 2-tier environment driver is generally selected using Class.forName("driver");
or using You can dig into your code and see how database connection is being obtained.
If yours is a 3-tier environment, you will have to browse thru server configuration to see how Connection pools are configured.
Or you can also check the class-path for example
Oracle JDBC driver is shipped as Classes12.jar/zip or ojdbc14.jar etc.
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1141


How can I find out which JDBC driver is being used in my project?

Ask your co-workers? (Or is this a "trick" question?)

Good Luck,
Sarath Mohan
Ranch Hand

Joined: Mar 17, 2001
Posts: 213

Do you want this info?

Sarath Mohan
I agree. Here's the link:
subject: JDBC driver
It's not a secret anymore!