NonStop Servlets for JSP System Administrator's Guide
Configuring NSJSP
NonStop Servlets for JavaServer Pages (NSJSP) System Administrator’s Guide—525644-001
3-5
servlet.config
-DSessionBasedLoadBalancing=[ true | false ]
enables or disables session-based load balancing support. Setting this to false
and configuring a PersistentManager and Persistent Store via the
iTP_server.xml configuration file will enable any SERVLET ServerClass
process to handle a session-based request. The default value is true
(-DSessionBasedLoadBalancing=true).
-DSessionBasedCookieExpiry=[ true | false ]
enables or disables the expiration time for session cookies based on the
session expiration time on the server side. The default value is false
(-DSessionBasedCookieExpiry=false).
Example 3-1 shows a sample server directive arglist:
For additional information about NonStop Server for Java, see the NonStop Server for
Java (NSJ) Programmer’s Guide.
Note. If the session timeout value is low (default is 30 minutes) and the clock values
on the server and client are badly skewed, the cookie may expire immediately after
being sent to the client (browser). The default value of false sets the cookie expiration
time to -1, which means that the cookie will persist until the client (browser) window is
shut down or closed. However, if the client sends a cookie that refers to a session that
has expired (and the current request does not need or refer to a session), then the
server ensures that the cookie expires immediately.
Example 3-1. Server Directive Arglist
Arglist -Xnoclassgc -Xmx32m -Xss128k -Dbrowserdebug=false \
-Djdbc.drivers=com.tandem.sqlmp.SQLMPDriver \
-Djava.security.manager \
-Djava.security.policy==$env(NSJSP_HOME)/conf
/iTP_catalina.policy \
-Djava.endorsed.dirs=$env(NSJSP_ENDORSED_DIRS) \
-Dcatalina.home=$env(NSJSP_HOME) \
-Djava.io.tmpdir=$env(NSJSP_HOME)/temp \
-DSaveSessionOnCreation=true \
-DSessionBasedLoadBalancing=true \
com.tandem.servlet.NSJSPBootstrap -config \
$env(NSJSP_HOME)/conf/iTP_server.xml start