Exercises

A nice short exercise for you today.

The starting point for the exercise is a version of the today's case study that uses the BMTD for the AdvertiseJob bean. Convert the Register bean (that deals with applicants) to use BMTD rather than CMTD. The code to work on is under day08\exercise.

The steps you should perform are as follows:

1.
Make sure that you are still using the CMP version of the Agency database. Although you won't be changing them, the Entity EJBs for the exercise are the CMP versions from yesterday.
2.
Update the implementation of the various methods of RegisterBean class, basing it on AdvertiseJobBean. You will probably find it helpful to copy over the 3 helper methods (beginTransactionIfRequired(), statusAsString() ...

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.