NonStop Servlets for JSP System Administrator's Guide

Configuring NSJSP
NonStop Servlets for JavaServer Pages (NSJSP) System Administrator’s Guide525644-001
3-34
Configuring Persistent Sessions
Configuring Persistent Sessions
NSJSP provides support for persistent sessions via the <Manager> element in the
iTP_server.xml configuration file. The <Manager> element should be nested
below a <Context> element, as it represents a session manager that can be used to
create and maintain session data for a particular web application/Context.
If a <Manager> element is not specified for a <Context> element, a default
<Manager> configuration is automatically created that will handle and store session
data only for the life of the Container/JVM process. The default configuration uses the
NSJSPStandardManager class for the className attribute in the <Manager>
element.
Creating a NonStop SQL Database to Store the Persistent
Session Data
To successfully configure NSJSP for persistent sessions support, you first need to
create a NonStop SQL database (catalog and table) for storing and saving the
persistent session data. A sample SQL script located at
iTPWS_INSTALL_DIR/servlet_jsp/conf/iTP_SessionStore.sql.sample
is provided with the NSJSP distribution, enabling you to create a NonStop SQL catalog
and table.
To create the NonStop SQL database for storing the persistent session data, you can
do one of the following:
Copy the iTP_SessionStore.sql.sample file and replace all occurrences of
=TheT1222SessionCatalog with the Guardian location (of the form
$Volume.SubVolume) where you wish the persistent session catalog and table to
be created. This subvolume (disk) should be a TMF-audited data volume.
Then, pass this file as an input to the NonStop SQL Command Interpreter (SQLCI)
using the following OSS command:
osh> gtacl -p sqlci < iTP_SessionStore.sql.sample
Or run the NonStop SQL commands directly via the NonStop SQL Command
Interpreter (SQLCI), replacing the =TheT1222SessionCatalog string with the
Guardian location of the persistent session catalog (of the form
$Volume.SubVolume). This subvolume (disk) should be a TMF-audited data
volume. See Example 3-27.