Exercises

The job agency case study defines a complete set of Session beans, and Entity beans. All of the Entity beans except the Applicant bean are implemented using CMP; the Applicant bean has been implemented using BMP. The exercise is to implement an Applicant Entity bean to use CMP. The source code and deployment descriptors can be found under day07\exercise, and the directory structure is the same as yesterday.

In more detail, the fields of the Applicant bean need to be converted into either cmp-fields or cmr-fields:

  • login This is the primary key for the Applicant Entity bean and will be a cmp-field.

  • name cmp-field

  • email cmp-field

  • summary cmp-field

  • location cmr-field to the Location bean. There will be a one-to-many relationship between Location ...

Get Sams Teach Yourself J2EE™ 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.