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 Guide544548-004
3-42
Configuring Persistent Sessions
Configuring Persistent Sessions
NSJSP 6.0 supports persistent sessions through the <Manager> element in the
context configuration file. Nest the <Manager> element below a <Context> element,
because the <Manager> element represents a session manager that can be used to
create and maintain session data for a particular web application.
If a <Manager> element is not specified for a <Context> element, a default
<Manager> configuration is automatically created that handles and stores session
data only for the life of the Container/JVM process. The default configuration uses the
com.tandem.servlet.catalina.session.NSJSPStandardManager class for
the className attribute in the <Manager> element. For more information on
NSJSPStandardManager, see context.xml on page 3-13.
Creating a NonStop SQL Database to store Persistent Session
Data
To successfully configure NSJSP for persistent sessions support, create a NonStop
SQL database (catalog and table) to store and save the persistent session data. The
following SQL scripts are used to create the persistent session:
nsjsp_createSessionStore_mp.sql (for SQL/MP)
nsjsp_createSessionStore_mx.sql (for SQL/MX)
To create the NonStop SQL database for storing the persistent session data, perform
one of the following tasks:
For NonStop SQL/MP database:
Copy the file nsjsp_createSessionStore_mp.sql and replace all
occurrences of =TheT1222SessionCatalog with the Guardian location (of the
form $Volume.SubVolume) where you want the persistent session catalog and
table to be created. This subvolume (disk) should be a TMF-audited data volume.
Use the following OSS command to forward the input file to the NonStop SQL
Command Interpreter (SQLCI):
osh> gtacl -p sqlci <
nsjsp_createSessionStore_mp.sql.your_copy
For NonStop SQL/MX database:
Copy the file nsjsp_createSessionStore_mx.sql and replace the
=TheT1222SessionCatalog string with a valid catalog name. Replace the
=TheT1222SessionSchema string with a valid schema name.
Note. The nsjsp_migrateSessionStore script migrates data from SQL/MP to
SQL/MX. For more information on this script, see nsjsp_migrateSessionStore on page 5-22.