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

Configuring NSJSP
NonStop Servlets for JavaServer Pages (NSJSP) 7.0 System Administrator’s Guide—674372-005
3-47
The server.xml File
GlobalNamingResources Element
The GlobalNamingResources element defines the global JNDI resources for
the Server. The resources defined here are listed in the server's global JNDI
resource context. The server's global JNDI resource context is different from the
JNDI resources defined in each web application. The global JNDI resources are
not, by default, available to individual web applications. A global JNDI resource can
be made available to a web application by using a ResourceLink element in the
applications context definition. For more information on the
GlobalNamingResources element, see http://tomcat.apache.org/tomcat-7.0-
doc/config/globalresources.html.
The GlobalNamingResources element in the default server.xml file defines
a resource of type org.apache.catalina.UserDatabase. This resource is
used by the UserDatabaseRealm that is nested in the Engine element.
Example 3-42 shows the default value for the GlobalNamingResources
element.
Service Element
A Service element represents the combination of one or more Connector
components that share a single Engine element for processing incoming
NSJSP Lifecycle
Listener
This Listener is used to instantiate the NSJSP-specific MBeans.
These MBeans are mainly used by the admin feature. The class
name of this Listener is
com.tandem.servlet.NSJSPLifeCycleListener.
Security Lifecycle
Listener
Security Lifecycle Listener is not supported by NSJSP. It is not
supported since NSJSP does the necessary security checks
during its installation.
JMX Remote
Lifecycle Listener
NSJSP does not supports JMX Remote Lifecycle Listener
because of multiple JVM instances in an NSJSP environment.
Example 3-42. The Default Value for the GlobalNamingResources Element
<GlobalNamingResources>
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and
saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFac
tory"pathname="conf/nsjsp-users.xml" />
</GlobalNamingResources>
Table 3-10. Descriptions of Listeners configured as child elements of the Server
element
Listener Description