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-59
The context.xml File
must be configured for every configured Host element. The valve tracks all the
requests flowing to the applications in that Host. This information is used for
displaying application statistics in the new NSJSP Manager application. There
is no overhead incurred in configuring this valve.
Example 3-51 shows the default values for the RequestTrackerValve.
Request Dumper Valve
The class name of this valve is
com.hp.tandem.nsjsp.valves.NSJSPRequestDumperValve. This
valve dumps (that is, records) all the incoming requests and the outgoing
responses to the parent log file. For example, if this valve is configured under
an Engine and is turned on by setting the dumperOn attribute to true, the
valve dumps all the requests and responses for all the applications in all the
Hosts configured for the Engine. This valve too, like any other valve, can be
configured in an Engine, Host or a Context. The recordLength attribute
indicates the maximum size of the record printed to the log file. A record is
printed for the request and another for the response.
The default server.xml file does not have this valve configured. If this valve
is configured, the dumperOn and the recordLength attributes can be
changed while the server is running using the MBeans feature of the NSJSP
Manager application.
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
Example 3-51. The Default Values for the RequestTrackerValve
<Host name="localhost" appBase="webapps" unpackWARs="true"
autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"
configClass="com.tandem.servlet.catalina.startup.NSJSPContextConfig">
<Valve className="com.hp.tandem.nsjsp.valves.RequestTrackerValve"/>
</Host>










