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-89
Mixed-Mode Sessions
session is persisted, it is removed from process memory. Sessions are persisted till
the number of active sessions is less than maxActiveSessions. For more
information on maxActiveSessions and minIdleSwap, see Table 3-21.
3. All the remaining in-memory sessions are checked to see if the time since they
were last accessed is greater than maxIdleBackup. If so, the session is written to
the persistent store, but is not removed from process memory. For more
information on maxIdleBackup, see Table 3-21.
Configuring Mixed-Mode Sessions
To configure a mixed-mode session, complete the following steps:
1. Set SessionBasedLoadBalancing to true
2. Configure the Manager Element
3. Create the Persistent Store
4. Configure the Persistent Store
Set SessionBasedLoadBalancing to true
Set SessionBasedLoadBalancing to true in the installation-specific
servlet.config file in the <NSJSP_HOME>/conf directory.
Example 3-70 shows the Arglist of an installation-specific servlet.config file with
SessionBasedLoadBalancing set to true.
Configure the Manager Element
Configure the Manager element in the <NSJSP_HOME>/conf/context.xml file.
Ensure that the className attribute is set to
com.tandem.servlet.catalina.session.NSJSPPersistentManager.
Example 3-70. An Arglist from a servlet.config file with
SessionBasedLoadBalancing Set to true
Arglist -Xmx64m -Xss128k -Xnoclassgc \
-Dcom.tandem.servlet.CONTEXT_PREFIXES=/scA \
-Dcatalina.home=$env(NSJSP_HOME) \
-Dcatalina.base=$env(NSJSP_HOME) \
-Djava.io.tmpdir=$env(NSJSP_HOME)/temp \
-DSessionBasedLoadBalancing=true
org.apache.catalina.startup.Bootstrap start










