This chapter introduces entity beans and Bean-Managed Persistence (BMP). The EJB container provides services to keep the entity bean synchronized with the underlying database, as well as providing support for transactions. The EJB container manages the life cycle of entity beans, keeping them activated for efficient access by clients.
Although entity beans and session beans have similar structure (they both have home/local home and remote/local interfaces and bean implementations), entity beans and session beans are quite different in the roles they occupy.
An entity bean models persistent business data. A session bean models a business process and is not persistent.
An entity bean's create() method inserts data into an ...