aspose file tools*
The moose likes JDBC 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 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "JDBC driver" Watch "JDBC driver" New topic
Author

JDBC driver

trupti nigam
Ranch Hand

Joined: Jun 21, 2001
Posts: 613
Hi

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

Thanks,
Trupti
Abhinav Srivastava
Ranch Hand

Joined: Nov 19, 2002
Posts: 349

In a 2-tier environment driver is generally selected using Class.forName("driver");
or using jdbc.properties. 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: 1121

Trupti,

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,
Avi.
Sarath Mohan
Ranch Hand

Joined: Mar 17, 2001
Posts: 213
DriverManger.getDrivers()

Do you want this info?


Sarath Mohan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JDBC driver
 
Similar Threads
Where is Implementation for this method
Simple jdbc program error
using oracle
A servlet code written to add details in database but not happening?
Weird number been put to DB table through JDBC