NonStop Servlets for JavaServer Pages (NSJSP) 6.0 System Administrator's Guide
Configuring NSJSP
NonStop Servlets for JavaServer Pages (NSJSP) 6.0 System Administrator’s Guide—544548-004
3-46
Session Persistence to Store
Session Persistence to Store
This section describes the situations in which the sessions are persisted to the
persistent store. It is recommended to refer the SessionBasedLoadBalancing and
the SaveSessionOnCreation description under NSJSP-specific Runtime Arguments
on page 3-5 before attempting to understand session persistence to store.
The SessionBasedLoadBalancing and the SaveSessionOnCreation are
present in the servlet.config file in the iTPWS_INSTALL_DIR/conf directory.
Depending on the value of SessionBasedLoadBalancing, the following two
scenarios must be considered:
When SessionBasedLoadBalancing is set to true, the session will be
persisted to the store based on the following NSJSPPersistentManager
configuration attributes in context.xml:
-maxActiveSessions
-maxIdleBackup
-maxIdleSwap
-minIdleSwap
-maxInactiveInterval
-processExpiresFrequently
For a detailed description of these attributes, refer the Persistent Manager
Implementation section at http://tomcat.apache.org/tomcat-6.0-
doc/config/manager.html.
When SessionBasedLoadBalancing is set to false, the session will be
persisted to the store after request processing, only if a persistent store is
configured.
SaveSessionOnCreation is recommended to be set to false to prevent
saving the session even before it is modified by the user application. This reduces
a database operation for every client request.
Note. If a forced shutdown is performed, the session will not be persisted to the store.
However if a persistent store is configured and the server is gracefully shutdown, then
irrespective of the value of
SessionBasedLoadBalancing, session will be persisted
to the store. For more details on stopping the NSJSP server, see Restarting NSJSP
on
page 2-10 and Stopping NSJSP
on page 2-10.










