10.3.2 Dynamic Cache Policy Editor
The Dynamic Cache Policy Editor is a tool that helps create the dynamic cache policies file cachespec.xml. This tool validates cache policies against its XML schema, provides assistance in completing content and restricts changes that are invalid during runtime. It also includes a tool that analyses servlets and JSPs, generates the cache policies for them, and adds those policies to the cache policy file.
The Dynamic Cache Policy Editor is provided as an Eclipse plug-in and plugs into WebSphere Studio Application Developer V5.1.0 and higher or Application Server Toolkit (AST) V5.1.0 and higher.
At the time of writing this redbook, the Dynamic Cache Policy Editor could not be used with Rational Application Developer V6 or AST V6.
As it is not expected that the GUI changes much once available for the V6 tools, we decided to include this section to show the functionality of the tool. All screenshots and descriptions are based on the available version plugged into AST V5.1.
Please check the download site for new versions of the product.
Please refer to 10.7, Using the Dynamic Cache Policy Editor for details on how to install and use the Cache Policy Editor.
The next sections explain some cachespec.xml entries needed for the various caching scenarios explained in this chapter. You can either create these entries manually using any editor or refer to 10.7.3, Examples: Creating cachespec.xml entries with the Dynamic Cache Policy Editor where we discuss how to create some of those examples using the Dynamic Cache Policy Editor.