O'Reilly logo

Special Edition Using Java™ 2 Enterprise Edition by Mark Wutka

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

Basic Authentication

Both the EJB and Servlet specifications support authentication and if you use servlets and EJBs in the same server, you might be able to create users one time and use the same users for both the servlets and the EJBs. In other cases, however, your servlet container is separate from the EJB container, so you must configure the authentication separately.

Eventually, the J2EE-JAAS integration will solve this problem, allowing you to authenticate a user from the Web container and pass the authorization context along to the EJB container. Some J2EE servers already pass authorization information between different containers. Most of the time, you must be running the containers within the same server, although some servers might ...

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