NonStop Servlets for JSP System Administrator's Guide
Configuring NSJSP
NonStop Servlets for JavaServer Pages (NSJSP) System Administrator’s Guide—525644-001
3-2
servlet.config
servlet.config
This file contains the configuration information required for the SERVLET ServerClass
and the filemap. The file is located (by default) in /usr/tandem/webserver/conf.
When you run a new installation (of T1222) for the first time, for security purposes, the
setup script automatically makes a backup of any pre-existing servlet.config file.
You can then make any changes to the default, such as adding filemaps.
Environment Variables
You may need to change the SERVLET_JSP_HOME environment variable. It must be
set, as follows:
set env(NSJSP_HOME) /usr/tandem/webserver/servlet_jsp
Filemaps
For each new application (a collection of related servlets, JSP and other resources)
you may need to add a corresponding filemap in the servlet.config file.
For example, assume you have a new application called orders. You can access it
while the default path is /servlet_jsp/orders or add the following filemap.
Filemap /orders $server_objectcode
Server Directive
Among many other entries, Numstatic and Maxservers are set in the server
directive. The default situation is that both are set to 1, because the NSJSP process is
multi-threaded.
To support sessions, all processes in the web container must be static, if you are not
using persistent sessions. That is, the Numstatic and Maxservers attributes of the
web container must have the same value. If the values are not equal, the LINKMON
will bring up additional dynamic Servlet server processes based on the system load. If
a dynamic Servlet server process is shut down because the system load has
decreased, all the session data it contained will be lost.
The following entries must not be changed:
Arglist
The arglist parameter in the server directive has been used to specify the
following configuration:
The class file which the NSJSP server process loads immediately upon startup.
com.tandem.servlet.NSJSPBootstrap
Note. You cannot configure and manage multiple instances of the SERVLET ServerClass.