O'Reilly logo

EJB 3.1 Cookbook by Richard M. Reese

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

Configuring the server to handle security

Enabling a server to handle security involves configuring the actual server and configuring the deployment file. In order for the server to handle the application, the application needs to specify certain application security attributes in a deployment descriptor file. This recipe addresses these issues.

Getting ready

Before a Java EE application can use security, the EE server must be configured to handle security. The configuration process involves several steps:

  1. Enabling the security manager
  2. Selecting a realm
  3. Adding users and groups to the realm
  4. Optional: Enabling the default principal to role mapping

The actual steps are server-specific. On the application side, this process involves modifying a deployment ...

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