beautypg.com

HP Integrity NonStop H-Series User Manual

Page 71

background image

NOTE:

The default value of

-DSaveSessionOnCreation

is

false

.

-DSessionBasedLoadBalancing

Enables or disables

SessionBasedLoadBalancing

.

Syntax:

-DSessionBasedLoadBalancing=[ true | false ]

NOTE:

The default value of

-DSessionBasedLoadBalancing

is set to

true

.

For example, if you want to enable the

SessionBasedLoadBalancing

feature for your

Spring application and save the application sessions in a persistent store, set the

Arglist

as:

Server $server_objectcode {



Arglist -DSessionBasedLoadBalancing=true \

-DSaveSessionOnCreation=true \





}

where,

server_objectcode

is mapped to the

servlet.ssc

object in the

<iTP WebServer

deployment directory>/bin

directory on OSS.

While setting these arguments, consider the following:

1.

If both the

SaveSessionOnCreation

and

SessionBasedLoadBalancing

options

are set to

false

, and if a Persistent Manager is configured with a persistent store, all

sessions are written to the store at the end of each request processing cycle. As a result,
all changes made to the session by the user application are persisted to the store.

2.

When

SessionBasedLoadBalancing

is set to

false

and a Persistent Manager is

configured with a persistent store, sessions are written to the store at the end of each
request processing cycle. As a result, all changes made to a session by the client
application are persisted to the store.

NonStop Platform Configurations

71

This manual is related to the following products: