SE452: Using JDBC [5/12] ![]() ![]() ![]() |
JDBC classes/interfaces are in two packages:
java.sql
javax.sql
To use JDBC in your program:
For most server applications, we use Connection pools that are mapped
to a javax.sql.DataSource
. So the steps involve:
DataSource
using JNDIDataSource
It is important to be aware of the resources that you are using when writing a JDBC program. You need to explicitly close connections, statements, etc.