Components of an Entity Bean Using BMP

The components of an entity bean that uses BMP are the same as those of an entity bean that uses CMP:

  • Remote interface— There is no change in how the remote interface is written for entity beans using either BMP or CMP.

  • Home interface— There is no change in how the home interface is written for entity beans using either BMP or CMP.

  • Entity bean implementation class— The major changes that need to be carried out to implement an entity bean using BMP occur in the entity bean's implementation class. To write an entity bean using BMP, the life-cycle methods that deal with persisting and maintaining the state of the entity bean need to be implemented. The following are the methods that need to be changed:

    • ejbCreate() ...

Get Sams Teach Yourself BEA WebLogic Server 7.0™ in 21 Days 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.