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

Using the code for the Advertise EJB as an example, add in security for the Register EJB. Use declarative security to restrict access to the Register Session bean to members of the J2EE RI Applicants group. Add programmatic security to ensure a non-administrator can only create a Register EJB using a login name the same as his or her principal name. Update the Agency bean to restrict the abilities of a non-administrator to only being able to create and delete applicants with a login name the same as his or her principal name. Don't forget to add the role ref mapping admin onto Administrator in the Register session EJB and the Register Web application.

Update the agency.jsp and register.jsp Web pages to obtain the applicant's name from ...

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