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

There are several refactorings that could be performed on the case study. One of the most effective is to use Value Objects between the clients and their associated Session beans. This exercise asks to you perform such a refactoring.

  1. Create a Value Object called ApplicantValueObject. This should contain all of the information about an applicant, such as his or her name, e-mail, and so on. The class you create should be a JavaBean, and you must be able to use it as a parameter or return type in an RMI method call.

  2. Alter the Register interface so that it passes ApplicantValueObjects between client and server. The interface should only have two methods.

  3. Alter the RegisterBean EJB so that it implements the updated Register interface and uses ...

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