Entity bean concepts

An entity bean is used to represent a permanent object such as a customer or an account. In the most common case, the permanent data that represents the state of the enterprise bean is stored in a relational database. The attributes of the object are mapped to rows in one or more tables. Since the state is stored in a database, the state of an enterprise bean persists longer than the request, the session, or even the server or container lifetime. This is why we sometimes say that entity beans survive a server crash.

Although it is most likely a relational database, the data could theoretically come from any type of data source, and entity beans might be an appropriate choice if this data can associate to a specific concept ...

Get EJB 2.0 Development with WebSphere Studio Application Developer 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.