Types of beans: session and entity
Container-managed persistence versus bean-managed persistence
This chapter introduces the use of Enterprise JavaBeans (EJBs) to access databases. It presents the various ways that JDBC can be used with EJBs and includes an overview of their respective advantages and disadvantages.