Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The following examples show how to secure enterprise beans using declarative and programmatic security.
This section discusses how to configure an enterprise bean for basic user name/password authentication. When a bean that is constrained in this way is requested, the server requests a user name and password from the client and verifies that the user name and password are valid by comparing them against a database of authorized users on the GlassFish Server.