NonStop Servlets for JSP System Administrator's Guide
Configuring NSJSP
NonStop Servlets for JavaServer Pages (NSJSP) System Administrator’s Guide—525644-001
3-38
Configuring the Manager for Sessions Support
maxActiveSessions
The maximum number of active sessions that can be created. The default value
used is -1 for no limit or unlimited active sessions.
randomClass
The Java class name of the java.util.random implementation class. The
default class used is java.security.SecureRandom.
Example 3-30 shows how to use the NSJSPStandardManager.
NSJSPPersistentManager (Session Persistence Support)
NSJSPPersistentManager is the persistent implementation of a session manager. It
can swap active, but idle, sessions out to a persistent store, as well as save sessions
across restarts of the NSJSP container. The actual persistent store mechanism is
configured via a <Store> element nested under the <Manager> element.
In addition to the common manager attributes specified in Configuring the Manager for
Sessions Support on page 3-36, NSJSPPersistentManager supports the following
attributes:
algorithm
Name of the message digest algorithm used to calculate the session identifiers it
generates. The java.security.MessageDigest class must support this value.
The default value used is MD5.
checkInterval
The number of seconds between checks for expired sessions. The default value
used is 60 seconds.
Example 3-30. Using the NSJSPStandardManager
<Context path="/servlet_jsp/webdav" docbase="webdav" reloadable="false"
debug="0" >
<!- Using the default NSJSPStandardManager but with a check
Interval time of 5 minutes (300 secs) instead of the default 60
seconds and also changed the entropy attribute for security
reasons.
-->
<Manager
className="org.apache.catalina.session.NSJSPStandardManager"
debug="0" checkInterval="300"
entropy="hp NonStop™ Enterprise Division" />
</Context>
Note. To provide persistent sessions support, you will need to configure a <Store> element.