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-84
Persistent Manager Sessions
(SessionBasedLoadBalancing = false)
Considerations for Configuring the Manager Element
maxInactiveInterval
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-66.
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. 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.
Create the Persistent Store
To configure NSJSP for persistent sessions, create a NonStop SQL database (catalog
and table) to store the persistent session data. The following SQL scripts are used to
create a table to store persistent session data:
For SQL/MP: nsjsp_createSessionStore_mp.sql
For SQL/MX: nsjsp_createSessionStore_mx.sql
randomClass Java class name of the java.util.Random
implementation class to use. If randomClass
attribute is not specified, the default value is
java.security.SecureRandom.
saveOnRestart Sessions are not kept in memory, so this attribute has
no significance for the Persistent Manager.
sessionIdLeng
th
The length of session IDs created by this Manager,
excluding any JVM route information used for load
balancing. If this attribute is not specified, the default
value is 16.
Example 3-66. Default Configuration of session-timeout in the
<NSJSP_HOME>/conf/web.xml File
<session-config>
<session-timeout>30</session-timeout>
</session-config>
Table 3-19. Attribute List for the Manager element (page 2 of 2)
Attribute Description Default value










