Configuring the WebContainer Threadpool Using Wsadmin:-
Using Jython
- serid = AdminConfig.getid('/Server:server1')
- webid = AdminConfig.list('WebContainer',serid)
- AdminConfig.modify(webid,[['tuningParams', [['invalidationTimeout', '1800'], ['maxInMemorySessionCount', '40']]]])
- AdminConfig.modify(webid,[['threadPool', [['inactivityTimeout', '1800'], ['isGrowable', 'false'], ['maximumSize', '29'], ['minimumSize', '5']]]])
Conguring WebContainer Database Session management using wsadmin:-
- serid = AdminConfig.getid('/Server:server1')
- webid = AdminConfig.list('SessionManager',serid)
- sessid = AdminConfig.showAttribute(webid, "sessionDatabasePersistence" )
- AdminConfig.modify(webid,[['sessionPersistenceMode', 'DATABASE']])
- AdminConfig.modify(sessid,[['datasourceJNDIName', 'jdbc/Sess/SESS'], ['password', 'dbpassword'], ['userId', 'dbusername'], ['db2RowSize', 'ROW_SIZE_4KB']])
No comments:
Post a Comment