File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC driver

 
trupti nigam
Ranch Hand
Posts: 622
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

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

Thanks,
Trupti
 
Abhinav Srivastava
Ranch Hand
Posts: 354
Eclipse IDE Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1141
1
Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 213
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
DriverManger.getDrivers()

Do you want this info?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic