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 Relational Databases and the fly likes Data being retrieved even though MySQL driver is not loaded Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Data being retrieved even though MySQL driver is not loaded" Watch "Data being retrieved even though MySQL driver is not loaded" New topic
Author

Data being retrieved even though MySQL driver is not loaded

RajivAwadhesh kumar
Greenhorn

Joined: May 20, 2011
Posts: 24
I am not able to understand how the below code works even
though I have not loaded the MySQL driver?

Horst Stieg
Greenhorn

Joined: Oct 14, 2011
Posts: 13

You are probably using a JDBC 4.0 driver.

See here:

Any JDBC 4.0 drivers that are found in your class path are automatically loaded. (However, you must manually load any drivers prior to JDBC 4.0 with the method Class.forName.)
 
 
subject: Data being retrieved even though MySQL driver is not loaded
 
It's not a secret anymore!