Sharing session data between Java™ Virtual Machines
 Technote (FAQ)
 
Problem
Session Information can be shared between multiple JVM™s by using the HttpSessionIdReuse JVM argument.
 
Solution

Scenario

In some applications, it is necessary for two separate JVMs, or Application Servers, to share common session information. By default, each JVM uses a unique and separate session database.

Solution

Use the HttpSessionIDReuse JVM argument.

With WebSphere® Application Server V4.0.0 and V4.0.1, you must ensure that PQ55940 is installed prior to making the changes described below.

Starting with V4.0.2 and subsequent releases, this fix is included.

Setting HttpSessionIdReuse JVM arguments from the Administrative Console:
  1. Expand Nodes under WebSphere Administrative Domain.

  2. Expand Application Servers.

  3. Select the Application server (for example: Default Server).

  4. Select the JVM Settings.

  5. Click Add beside the table titled System Properties.

    Specify Name as HttpSessionIdReuse and Value as true.

  6. Click Apply.

  7. Check Generated Command Line Arguments to ensure the changes are reflected.

  8. Stop the Application Server.

  9. Restart the Application Server.
Repeat the above steps for each JVM that must have shared session information.
 
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Sessions and Session Management
Operating system(s): HP-UX
Software version: 4.0.7
Software edition:
Reference #: 1111540
IBM Group: Software Group
Modified date: Apr 12, 2004