iTP Secure WebServer System Administrator's Guide (iTPWebSvr 6.0+)
Using NonStop Servlets for JavaServer Pages
(NSJSP)
iTP Secure WebServer System Administrator’s Guide—523346-002
9-19
servlet.config
servlet.config file. You may 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(SERVLET_JSP_HOME) /usr/tandem/webserver/servlet_jsp
Filemaps
For each new application (a collection of related servlets, JSP and other resources)
you must add a corresponding filemap in the servlet.config file.
For example, assume you have a new application called orders, you will have to 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 multithreaded.
To support sessions, all processes in the web container must be static. 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 parameter. The arglist parameter in the server directive specifies the
following configuration:
°
The class file which the servlet server process loads immediately upon startup.
org.apache.tomcat.startup.Tomcat
°
The NSJSP home directory
-Dtomcat.home=$env(SERVLET_JSP_HOME)
°
The name of the customized server.xml file for NSJSP to use
-f conf/iTP_server.xml
Note. You cannot configure and manage multiple instances of the servlet server class.