Chapter 8. JDBC and databases


This chapter presents an overview of the JDBC specification, particularly as it applies to EJB development. Readers who are already familiar with JDBC in other environments will find its use within EJBs similar to their previous experience; however, there are some small technical differences that have profound practical consequences, as we shall see. We will discuss how the container provides DataSource objects that allow clients to open and close database connections, and how the database connections are, in fact, container-supplied proxies for real connections. This will lead to a discussion of connection management and connection pooling, and how to author EJBs to take advantage of these facilities. ...

Get Applied Enterprise JavaBeans™ Technology now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.