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-80
Persistent Manager Sessions
(SessionBasedLoadBalancing = false)
This variable is used to set the maximum time interval, in seconds, between client
requests before a session is invalidated. However, it should be noted that in the
current version of NSJSP, during a context start or restart this variable is always
overridden by the value specified in the session-timeout element in the
application’s deployment descriptor (web.xml). If the application’s deployment
descriptor does not explicitly specify a session-timeout element, the value is
taken from the <NSJSP_HOME>/conf/web.xml file as shown in Example 3-63.
The default value for session-timeout, which is expressed in minutes, is 30.
It is possible to set the value of this variable at run time using the MBeans feature
of the NSJSP Manager. For more information on using the MBeans feature, see
Managing MBeans on page 4-46. The value set at run time will take effect
immediately but will not be persisted and will not be available across web
application context restarts.
Persistent Manager Sessions (SessionBasedLoadBalancing =
false)
You can also configure NSJSP such that, each NSJSP process in the NSJSP Server
Class stores its session objects in a persistent store that is accessible to every other
NSJSP process. This will enable any request from any HTTPD process to be serviced
by any NSJSP process in the server class. In this case, session objects are saved to a
persistent store (such as a database) after processing each request within a session.
In this case, session based load balancing is said to be disabled. To use persistent
sessions, you must set the value of SessionBasedLoadBalancing to false, and
you must configure a persistent manager. For more information, see Configuring a
Persistent Manager on page 3-81.
Figure 3-6
shows request routing, session object fetching and storing session objects
upon request completion, by the behavior of NSJSP when the persistent store is
Example 3-63. The Default Configuration of session-timeout in the
<NSJSP_HOME>/conf/web.xml File
<session-config>
<session-timeout>30</session-timeout>
</session-config>