Before starting this task, the wsadmin tool must be running. See the Starting the wsadmin scripting client article for more information.
To see a list of parameters associated with dynamic caching, use the attributes command. For example:
$AdminConfig attributes DynamicCachePerform the following steps to enable servlet caching:
Using Jacl:
set s1 [$AdminConfig getid /Server:server1/]
Using Jython:
s1 = AdminConfig.getid('/Server:server1/')
Using Jacl:
set wc [$AdminConfig list WebContainer $s1]
Using Jython:
wc = AdminConfig.list('WebContainer', s1)
Using Jacl:
set serEnable "{enableServletCaching true}"
Using Jython:
serEnable = [['enableServletCaching', 'true']]
Using Jacl:
$AdminConfig modify $wc $serEnable
Using Jython:
AdminConfig.modify(wc, serEnable)
Related concepts
AdminConfig object for scripted administration
Related tasks
Using scripting (wsadmin)
Getting started with scripting
Related reference
Commands for the AdminConfig object