You can configure servlet caching with scripting and the wsadmin tool. The dynamic cache service works within an application server Java virtual machine (JVM), intercepting calls to cacheable objects. For example, it intercepts calls through a servlet service method or a command execute method, and either stores the output of the object to the cache or serves the content of the object from the dynamic cache.
AdminServerManagement.configureDynamicCache(nodeName, serverName, defaultPriority,cacheSize, externalCacheGroupName, externalCacheGroupType, otherAttributeList)For additional information and argument definitions, see the documentation for the AdminServerMananagment script library.
After a servlet is invoked and completes generating the output to cache, a cache entry is created containing the output and the side effects of the servlet. These side effects can include calls to other servlets or JavaServer Pages (JSP) files or metadata about the entry, including timeout and entry priority information. Configure servlet caching to save the output of servlets and JavaServer Pages (JSP) files to the dynamic cache.
To see a list of parameters associated with dynamic caching, use the attributes command. For example:
$AdminConfig attributes DynamicCache
In this information ... | IBM Redbooks, demos, education, and more(Index) |