Dynamic caching with scripting
Overview
To see a list of parameters associated with dynamic caching, use the attributes command. For examplePerform the following steps to enable servlet caching:$AdminConfig attributes DynamicCache
Procedure
- Start wsadmin
- Locate the server object. The following example selects the first server found:
Jacl:
set s1 [$AdminConfig getid /Server:server1/]s1 = AdminConfig.getid('/Server:server1/')- List the web containers and assign them to the wc variable, for example:
Jacl:
set wc [$AdminConfig list WebContainer $s1]wc = AdminConfig.list('WebContainer', s1)- Set the enableServletCaching attribute to true and assign it to the serEnable variable, for example:
Jacl:
set serEnable "{enableServletCaching true}"serEnable = [['enableServletCaching', 'true']]- Enable caching, for example:
Jacl:
$AdminConfig modify $wc $serEnableAdminConfig.modify(wc, serEnable)
See Also
AdminConfig object for scripted administration
Related Tasks
Using scripting (wsadmin)
Getting started with scripting
See Also
Commands for the AdminConfig object