Are you using JDBC 4.0 driver? If so the tutorial here states that
DriverManager: This fully implemented class connects an application to a data source, which is specified by a database URL. When this class first attempts to establish a connection, it automatically loads any JDBC 4.0 drivers found within the class path. Note that your application must manually load any JDBC drivers prior to version 4.0.
If not the Class.forName(....) line would be needed.
K. Tsang OCPJP7 OCMJEA6
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads