How JDBC Fits In

JDBC offers two key features: simplicity and database independence. It's considered simple because, with only a few statements, a developer can programmatically query a database. He can easily combine his own local application data with a template for a SQL query and execute the resulting dynamic query. In terms of database independence, JDBC allows engineers to stop worrying about differences in vendor-specific database connection instructions. Instead, it puts the burden on database companies to produce JDBC drivers and build their proprietary connection management codes beneath a common Java API.

JDBC is arguably the most mature of the J2EE technologies we've discussed throughout this book. This is for two reasons. One, even ...

Get Building Scalable and High-Performance Java™ Web Applications Using J2EE™ Technology now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.