Example: Configuring for serialization session access using wsadmin
The following example configures session management of a Web container for serialization session access.
- Idenitfy the application server and assign it to the server variable:
set server [$AdminConfig getid /Cell:mycell/Node:mynode/Server:server1/]Example output:
server1(cells/mycell/nodes/mynode/servers/server1:server.xml#Server_1)- Identify the session management belonging to the server and assign it to the smgr variable:
set smgr [$AdminConfig list SessionManager $server]Example output:
(cells/mycell/nodes/mynode/servers/server1:server.xml#SessionManager_1)- Enable serialization session access.
- The following example sets the maximum wait time a servlet waits on a session before continuing execution:
$AdminConfig modify $smgr {{allowSerializedSessionAccess true} {maxWaitTime 20}}- The following example allows servlet execution to abort when the session request times out:
$AdminConfig modify $smgr {{allowSerializedSessionAccess true} {maxWaitTime 20} {accessSessionOnTimeout true}}
- Save the changes with the following command:
$AdminConfig save