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-82
Persistent Manager Sessions
(SessionBasedLoadBalancing = false)
2. Configure the Manager Element
3. Create the Persistent Store
4. Configure the Persistent Store
Set SessionBasedLoadBalancing to false
Set the SessionBasedLoadBalancing parameter in the installation-specific
servlet.config file in <NSJSP_HOME>/conf directory to false.
Example 3-64 shows an Arglist from an installation-specific servlet.config file with
SessionBasedLoadBalancing set to false.
Configure the Manager Element
Configure the Manager element in the <NSJSP_HOME>/conf/context.xml file.
The default manager configuration in the <NSJSP_HOME>/conf/context.xml file is
commented out. Ensure that the className attribute is set to
com.tandem.servlet.catalina.session.NSJSPPersistentManager.
Example 3-65 shows the sample configuration of the Manager element in the
context.xml file.
As shown in Example 3-65
, the Manager is configured with a nested store element.
Table 3-19
lists the attributes for the Manager element.
Example 3-64. An Arglist from a servlet.config file with
SessionBasedLoadBalancing set to false
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=false
org.apache.catalina.startup.Bootstrap start
Example 3-65. The Sample Configuration of the Manager Element
<Manager
className="com.tandem.servlet.catalina.session.NSJSPPersistentManager">
<Store
className="com.tandem.servlet.catalina.session.NonStopSQLJDBCStore"
driverName="com.tandem.sqlmx.SQLMXDriver"
connectionURL="jdbc:sqlmx:"
sessionTable="nsjspcat.nsjspsch.SessData"
sessionIdCol="session_id"
sessionProcessNameCol="process_name"
sessionRecNumberCol="rec_number"
sessionAppCol="app_name"
sessionDataCol="session_data" sessionValidCol="valid"
sessionMaxInactiveCol="maxinactiveinterval"
sessionLastAccessedCol="lastaccessed"/>
</Manager>