NonStop Servlets for JSP System Administrator's Guide
Configuring NSJSP
NonStop Servlets for JavaServer Pages (NSJSP) System Administrator’s Guide—525644-001
3-9
web.xml
before higher integers. If no value is specified, or if the value specified is not a positive
integer, the container is free to load it any time in the startup sequence.
Example 3-6 shows a servlet class file, SessionSnoop, which has a priority of 3. Files
with a higher priority will be loaded before this one. Note that the servlet class name is
SessionSnoop, but a URL could reference it by the servlet name Snoop.
Defining a Session Timeout Value
A session timeout parameter could be in either of the two versions of the web.xml file.
You can define a default session timeout interval value for all sessions created in the
web application by using the <session-config> and <session-timeout>
elements in the web.xml file. The specified timeout value must be expressed in a
whole number of minutes, as shown in Example 3-7.
Your Application Version of web.xml
Each application can have a copy of web.xml, the deployment descriptor, at the root
level of the application, for example:
/webapps/myapp1/WEB-INF/web.xml
This file overrides any settings made in the web.xml file at the
iTPWS_INSTALL_DIR/servlet_jsp/conf level.
Example 3-6. Preloading Servlets
<servlet>
<servlet-name>
Snoop
</servlet-name>
<servlet-class>
SessionSnoop
</servlet-class>
<load-on-startup>
3
</load-on-startup>
</servlet>
Example 3-7. Defining a Session Timeout Value
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>