Exercises

To extend your knowledge of the subjects covered today, try the following exercise:

Define an addUser (String userName, String password) method in the remote interface SignOn. Add a corresponding method in the enterprise bean class SignOnEJB.

For today, you can provide an empty implementation for the method. Later, you'll extend it to write to database using an entity bean.

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.