O'Reilly logo

Sams Teach Yourself J2EE™ in 21 Days by Peter Roxburgh, Andy Longshaw, Debbie Law, Dan Haywood, Martin Bond

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

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() ...

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