6.8. Key Point Summary

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 ...

Get Enterprise JavaBeans™ Component Architecture: Designing and Coding Enterprise Applications 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.