更改控制台会话到期
请运行这个 JACL 脚本以设置登录会话到期前可以使用集成解决方案控制台的时间长度。
关于此任务
过程
- 将以下脚本复制到一个文件中。
set dep [$AdminConfig getid /Deployment:isclite/] set appDep [$AdminConfig list ApplicationDeployment $dep] set sesMgmt [$AdminConfig list SessionManager $appDep] # check if existing sesMgmt there or not, if not then create a new one, if exist then modify it if {$sesMgmt == ""} { # get applicationConfig to create new SessionManager set appConfig [$AdminConfig list ApplicationConfig $appDep] if {$appConfig == ""} { # create a new one set appConfig [$AdminConfig create ApplicationConfig $appDep {}] # then create a new SessionManager using new Application Config just created set sesMgmt [$AdminConfig create SessionManager $appConfig {}] } else { # create new SessionManager using the existing ApplicationConfig set sesMgmt [$AdminConfig create SessionManager $appConfig {}] } } # get tuningParams config id set tuningParams [$AdminConfig showAttribute $sesMgmt tuningParams] if {$tuningParams == ""} { # create a new tuningParams $AdminConfig create TuningParams $sesMgmt {{invalidationTimeout <timeout value>}} } else { #modify the existing one $AdminConfig modify $tuningParams {{invalidationTimeout <timeout value>}} } # saving the configuration changes $AdminConfig save
- 将此样本两行上的 <timeout value> 更改为新的会话到期值。此数值指定控制台在不活动期间保留会话的分钟数。
- 将该文件保存到任何目录中,例如,使用文件名 timeout.jacl 来保存该文件。
- 从 <WAS-install>/profiles/<profile_name>/bin 目录中启动 wsadmin 脚本编制客户机。
- 发出以下命令。
wsadmin -f <path to jacl file>/timeout.jacl


http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=cons_sessionto
文件名:cons_sessionto.html