2.9. Uses of Entity Beans, Stateful Beans, and Stateless Beans

Entity beans are used to persist the enterprise data. The entity bean is a sharable enterprise data object that can be used by many users concurrently.

The stateful session bean is used to manage the state of a users session on the server. An example of a stateful session bean would be a shopping cart. The stateless session bean can be used to implement the business logic and workflow of an application.

Get Sun Certified Enterprise Architect for J2EE™ Technology Study Guide 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.