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-65
The context.xml File
The following elements are defined in the <NSJSP_HOME>/conf/context.xml file:
WatchedResource
The WatchedResource identifies an application resource that has to be watched
by the auto deployer. For more information on the auto deployer, see autoDeploy
on page 3-57. There can be multiple WatchedResource entries defined in a
context.xml file. Some resources, such as an application WAR file (if present),
the application directory, and the context definition file are by default added as
watched resources.
Manager
The Manager element configures the session manager. By default, the
NSJSPStandardManager is configured. The NSJSPStandardManager is an in-
memory session manager. The pathname attribute is ignored by the manager. For
more information about the NSJSPStandardManager, see Session Management
on page 3-75.
Loader
The Loader element represents the web application class loader that will be used
to load Java classes and resources for a web application. NSJSP provides its own
loader class
com.tandem.servlet.catalina.loader.NSJSPWebappLoader. The loader
class name should not be changed.
unpackWAR If true, NSJSP unpacks all compressed web applications
before running them. If this attribute is not specified, the
default value is true.
useNaming Set to true (the default) to have Catalina enable a JNDI
InitialContext for this web application that is compatible
with Java2 Enterprise Edition (J2EE) platform conventions. If
this attribute is not specified, the default value is true.
workDir Represents the pathname to a scratch directory. This
information is provided by this Context for temporary
read-write use by servlets within the associated web
application. This directory will be made visible to servlets in
the web application by a servlet context attribute (of type
java.io.File) named
javax.servlet.context.tempdir as described in the
Servlet Specification. If this attribute is not specified, a suitable
directory underneath $CATALINA_BASE/work is provided.
Note. The context.xml file also contains a persistent manager configuration which is
commented out.
Table 3-17. Attribute List for the Context Element (page 5 of 5)
Attribute Description










