NonStop Servlets for JavaServer Pages (NSJSP) 6.0 System Administrator's Guide

Configuring NSJSP
NonStop Servlets for JavaServer Pages (NSJSP) 6.0 System Administrator’s Guide544548-004
3-38
UserDatabaseRealm
roleNameCol
Specifies the name of the column in the User RoleTable where the name of a role
assigned to this user.
userCredCol
Specifies the name of the column in the Users Table where the user's password is
kept.
userNameCol
Specifies the name of the column in the user Table where the user's name is kept.
userRoleTable
Specifies the location of the User Role Table.
userTable
Specifies the location of the Users Table.
For more information on configuring DataSourceRealm, see the Tomcat 6.0
Specification at
http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html.
UserDatabaseRealm
UserDatabaseRealm is an implementation of the NSJSP Realm interface that uses a
defined naming resource of org.apache.catalina.UserDatabase type. There is
also a UserDatabaseRealm added to the server.xml configuration file during the
product installation. Example 3-18 shows an example of UserDatabaseRealm
configuration.
UserDatabaseRealm Element Attributes
To configure UserDataBaseRealm, create a <Realm> element and nest it in your
NSJSP_HOME/conf/server.xml file or in the <Context> element in the context
configuration file, as in Example 3-9
on page 3-23. The following attributes are
supported for UserDatabaseRealm.
className
The value is org.apache.catalina.realm.UserDataBaseRealm.
Example 3-18. UserDatabaseRealm
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="myOwnUserDatabase"/>