Configure for database session persistence
To configure session management for a Web container:
- Create a JDBC provider
- Create a data source
- Identify the appserver id
set serverid [$AdminConfig getid /Cell:cname/Node:nname/Server:sname/]- Identify the session manager belonging to the serverid:
set smgr [$AdminConfig list SessionManager $serverid]- Modify database session persistence:
$AdminConfig modify $smgr {{sessionDatabasePersistence {{datasourceJNDIName jdbc/sessionName} {userId username} {password password}}}}One can optionally modify db2RowSize and tableSpaceName.
- Save changes:
$AdminConfig save