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-61
The context.xml File
Table 3-17. Attribute List for the Context Element (page 1 of 5)
Attribute Description
backgroundProcessor
Delay
Represents the delay in seconds between the invocation of
the backgroundProcess method on this context and its
child containers, including all wrappers. Setting this to a
positive value causes a thread to spawn. After waiting the
specified amount of time, the thread invokes the
backgroundProcess method on this context. A context uses
background processing to perform session expiration and
class monitoring for reloading. If this attribute is not specified,
the default value for this attribute is -1, which means the
context will rely on the background processing thread of its
parent host.
className Represents the Java class name of the implementation to use.
This class must implement the
org.apache.catalina.context interface. If this attribute
is not specified, the standard value
org.apache.catalina.core.StandardContext will be
used.
cookies Enables or disables cookies for session identifier
communication.
Set to true if you want cookies to be used for session
identifier communication if supported by the client (this is the
default). Set to false if you want to disable the use of
cookies for session identifier communication, and rely only on
URL rewriting by the application. If this attribute is not
specified, the default value is true.
crossContext Set to true if you want this application to be able to call
ServletContext.getContext() to successfully obtain a
request dispatcher for other web applications running on this
virtual host. Set to false (the default) in security conscious
environments, which makes getContext() always return
null. If this attribute is not specified, the default value is
false.
For more information on the implications of using
crossContext, see deployXML
on page 3-58.
docBase The Document Base (also known as the Context Root)
directory for this web application, or the pathname to the web
application archive file (if this web application is being
executed directly from the WAR file). You may specify an
absolute pathname for this directory or the WAR file, or a
pathname that is relative to the appBase directory of the
owning Host.
The value of this field must not be set when the Context is
configured using a META-INF/context.xml file as it is
inferred by the automatic deployment process.










