O'Reilly logo

J2EE™ Applications and BEA™ WebLogic Server™ by Sandra L. Emerson, Rob Woollen, Michael Girdley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

BMP Entity Beans

The EJB specification also supports entity beans with BMP. Unlike CMP entity beans that rely on the EJB container to provide the persistence logic, BMP entity beans must write explicit code to access the persistent store. For most users, this involves writing JDBC code to access a relational database.

Writing the Student BMP Entity EJB

The following sections demonstrate the process for creating an entity bean with BMP. In this example, we model a Student as an entity bean. This entity bean could be used to model Student records and make them available to Teachers and Parents.

First, create the remote interface, which extends javax.ejb.EJBObject and provides the signatures for business methods that the Student entity bean exposes ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required