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-69
The context.xml File
The context.xml File
Before discussing the content of the context.xml file, it is important to understand a
context. A context in NSJSP means a web application. To configure a context within
NSJSP, a Context Descriptor is required. A Context Descriptor is simply an XML file
that contains NSJSP related configuration information for a context. It could include, for
example, naming resources or the session manager configuration. Application specific
context descriptors can be located in
<NSJSP_HOME>/conf/[enginename]/[hostname]/<appname>.xml or
<NSJSP_HOME>/webapps/<appname>/META-INF/context.xml.
This section will be restricted to the default context.xml file located in the
<NSJSP_HOME>/conf directory. The context definition in this file will be loaded by all
web applications in the entire NSJSP Servlet Container. The elements defined by this
context.xml file can be overridden by an application-specific context.xml file. For
example, the <NSJSP_HOME>/conf/context.xml file defines a Manager element. If
the application-specific context.xml file does not define its own manager element
then the one defined in the <NSJSP_HOME>/conf/context.xml file will be used.
Table 3-16 provides an overview of the default context.xml file.
Note. However, parallel deployment where multiple versions of an application exist for a
single context is not supported in NSJSP.
Table 3-16. The default context.xml File
Location <NSJSP_HOME>/conf/context.xml
Description The default context.xml file is the context definition loaded by all
web applications.










