What Is an Entity Bean?
On the surface, an entity bean is similar to a session bean. They both have Home and Remote interfaces and an implementation class. They are both subject to many of the same restrictions. The big difference between entity beans and session beans is in the area of persistence and the implications stemming from it.
An entity bean represents persistent data—that is, data stored in some kind of database. Various client classes, which can be session beans, entity beans, or application programs, manipulate entity beans and save them back to the database. These operations always take place within the scope of a transaction.
Because an entity bean represents a piece of data that is accessible to multiple users, the entity beans ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access