A jdbc driver can be registered with the Driver Manager in four ways.
1. Automatic Registration
2. Using Class.forName("DRIVER_NAME")
3. Using property -Djdbc.drivers=DRIVER_NAME
4. Explicit registration using the new operator
Automatic Registration
Starting JDBC 4.0, the DriverManager methods getConnection() and getDrivers() have been enhanced to support automatic registration of the driver using the Service Provider mechanism.
Read more ...
Search This Blog
Showing posts with label JDBC. Show all posts
Showing posts with label JDBC. Show all posts
Oct 2, 2013Automatically registering the jdbc driverOct 22, 2012Configuring and retrieving a DataSource object
In the JDBC API, a
Subscribe to:
Posts
(
Atom
)
|