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

Configuring NSJSP
NonStop Servlets for JavaServer Pages (NSJSP) 6.1 System Administrator’s Guide—596210-006
3-42
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-6.0-
doc/config/globalresources.html.
Table 3-11. Descriptions of Listeners configured as child elements of the Server
element
Listener Description
Jasper Listener The Jasper Listener initializes the Jasper2 JSP engine before
loading any web applications. The Jasper2 JSP engine is an
implementation of the Java Server Pages 2.1 specification. The
class name of the listener is
org.apache.catalina.core.JasperListener.
Server Lifecycle
Listener
The Server Lifecycle Listener initializes the MBeanServer. The
MBeanServer registers MBeans. Without this Listener, MBeans
provided as part of Apache Tomcat will not be available. The
class name of the Listener is
org.apache.catalina.mbeans.ServerLifecycleListe
ner.
Global Resources
Lifecycle Listener
The Global Resources Lifecycle Listener initializes the Global
Java Naming and Directory Interface (JNDI) resources defined in
the server.xml file and in the GlobalNamingResources
element. Without this Listener, none of the Global Resources
can be defined. The class name of the Listener is
org.apache.catalina.mbeans.GlobalResourcesLifec
ycleListener.
Store Config
Lifecycle Listener
This Listener is used to instantiate MBeans that are used by the
admin application to persist the configuration changes made by
the admin application to the respective configuration files (for
example, the server.xml file and application-specific
context.xml files). The class name of the Listener is
org.apache.catalina.storeconfig.StoreConfigLife
cycleListener
NSJSP Lifecycle
Listener
This Listener is used to instantiate the NSJSP-specific MBeans.
These MBeans are mainly used by the admin application. The
class name of this Listener is
com.tandem.servlet.NSJSPLifeCycleListener.