Day 5. Developing Stateless Session Beans

Today you'll work on a complete example of developing an enterprise bean. The sample university registration application enables an existing user to log in to the system by verifying his login name and password. It also enables a new user to register her login name and password. Such a component does not need to maintain client-specific state information across method invocations, so the same bean instance can be reused to service other client requests. This can be modeled as a stateless session bean.

The SignOn component verifies the user's login name and password. For the sake of simplicity, the user's login name and password are stored in the deployment descriptor, as environment entries. On Day 21 ...

Get Sams Teach Yourself EJB 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.