Creating the SecurityApplication

In this chapter we will create a SecurityApplication built around a simple Voucher entity to persist travel information. This is a simplified version of an application that allows a user to submit a voucher and for a manager to approve or disapprove it. The voucher entity itself will hold only minimal information.

Getting ready

The illustration of security will be based on a series of classes:

  • Voucher An entity holding travel-related information
  • VoucherFacade A facade class for the entity
  • AbstractFacade The base class of the VoucherFacade class as described in Chapter 4, Creating an entity facade recipe
  • VoucherManager A class used to manage vouchers and where most of the security techniques will be demonstrated
  • SecurityServlet ...

Get EJB 3.1 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.