Configure for database session persistence

 


To configure session management for a Web container:

  1. Create a JDBC provider

  2. Create a data source

  3. Identify the appserver id

    set serverid [$AdminConfig getid /Cell:cname/Node:nname/Server:sname/]

  4. Identify the session manager belonging to the serverid:

    set smgr [$AdminConfig list SessionManager $serverid]

  5. Modify database session persistence:

    $AdminConfig modify $smgr {{sessionDatabasePersistence {{datasourceJNDIName jdbc/sessionName} {userId username} {password password}}}}

    One can optionally modify db2RowSize and tableSpaceName.

  6. Save changes:

    $AdminConfig save