13. Database Access

A database provides persistent storage for application data and is a critical part of many applications. Java has excellent support for accessing a relational database through the Java Database Connectivity (JDBC) API.

If your application has anything but a very simple data model with limited database access requirements, you might want to strongly consider using a database framework instead of writing directly to the JDBC API. The standard persistence framework for enterprise applications is the Enterprise Java Beans (EJB) framework. EJB is a part of the Java Enterprise Edition. EJB is considered to be overly complex by many Java developers, and thus open source alternatives are also becoming very popular. The complexity ...

Get Java™ Phrasebook 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.