Modify serialization session access using wsadmin
The following example configures session management of a Web container for serialization session access.
Using Jacl...
### Identify the appserver and assign it to the server variable... set server [$AdminConfig getid /Cell:cell/Node:node/Server:server/] ### Identify the session management belonging to the server and assign it ### to the smgr variable... set smgr [$AdminConfig list SessionManager $server] ### Set the maximum wait time a servlet waits on a ### session before continuing processing... $AdminConfig modify $smgr \ {{allowSerializedSessionAccess true} \ {maxWaitTime 20}} ### servlet processing can stop when the session ### request times out... $AdminConfig modify $smgr \ {{allowSerializedSessionAccess true} {maxWaitTime 20} {accessSessionOnTimeout true}} $AdminConfig save
Using Jython
server = AdminConfig.getid('/Cell:cell/Node:node/Server:server/') print server smgr = AdminConfig.list('SessionManager', server) print smgr AdminConfig.modify(smgr, [['allowSerializedSessionAccess', 'true'], ['maxWaitTime', 20]]) AdminConfig.modify(smgr, [['allowSerializedSessionAccess', 'true'], ['maxWaitTime', 20], ['accessSessionOnTimeout', 'true']]) AdminConfig.save()