aspose file tools*
The moose likes JDBC 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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
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.)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Data being retrieved even though MySQL driver is not loaded