DEVFYI - Developer Resource - FYI

What is a JDBC 2.0 DataSource?

JDBC Interview Questions and Answers


(Continued from previous question...)

What is a JDBC 2.0 DataSource?

The DataSource class was introduced in the JDBC 2.0 Optional Package as an easier, more generic means of obtaining a Connection. The actual driver providing services is defined to the DataSource outside the application ( Of course, a production quality app can and should provide this information outside the app anyway, usually with properties files or ResourceBundles ). The documentation expresses the view that DataSource will replace the common DriverManager method.

(Continued on next question...)

Other Interview Questions