Example Applications in the Application Server
If you have installed the Application Server's
samplesserver, you will have even more example applications to help you in the development of your Java EE applications. The following is a list of a few of the example applications that add security to an application in a way that is not yet covered in this tutorial:
<AS_HOME>/samples/security/ldaprealm/apps/dynamicgroup/docs/index.htmlThe LDAP Dynamic Group Realm sample application consists of an enterprise bean and an application client. The methods of the enterprise bean have been associated with either the
Administratorrole or theSecretrole in the enterprise bean deployment descriptor. The idea is to associate theAdministratorrole with a dynamic LDAP group, calledldapdynamicgroup. Then the application client verifies that user names belonging toldapdynamicgrouphave access to methods of the EJB that have been associated with theAdministratorrole, while access to methods not associated with that role will be denied.<AS_HOME>/samples/security/realms/apps/rdbms/docs/index.htmlThis sample application demonstrates using a custom security realm. You can use any JDBC-compliant relational database server.