Implementing an Entity Bean

A goal of this chapter has been to cover how to declare the interfaces for an entity bean that are exposed to clients, but not to get into the implementation details (that’s saved for the two chapters that follow). However, some implementation topics relate to both BMP and CMP, so it’s better to get to them now. No matter which persistence mechanism you choose, you need to understand the interfaces specific to an entity bean implementation class, and you need to know how to implement a bean’s business and home methods. It’s also important to cover how the container interacts with your bean classes.

The EntityBean Interface

Your bean classes must always either directly or indirectly implement the javax.ejb.EntityBean ...

Get Special Edition Using Enterprise JavaBeans™ 2.0 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.