Cache Mapping

Web Application WAR file -> General tabbed pane -> Sun-specific Settings button -> Sun-specific Settings dialog box -> Select Cache Map Policy from the View drop-down list

The Application Server can determine caching criteria programmatically by writing a cache helper class. In the Cache Mapping tabbed pane you can specify a custom class that implements the CacheHelper interface.

In the Cache Helper Properties section of the screen, define the helper properties.

To add a Cache Helper Property:

  1. Click Add.
  2. In the Cache Helper Name column, enter a unique name for the helper class.
  3. In the Class Name column, enter a fully qualified class name. It must implement the com.sun.appserv.web.CacheHelper interface.
  4. Enter the number of properties for the Cache Helper.

To delete a Cache Helper Property:

  1. Select the row containing the property.
  2. Click Delete.
In the Cache Mapping Configuration pane, define the mapping configuration.

To add a Cache Mapping Configuration:

  1. Click the Add button.
  2. In the Cache Target column, select either a ServletName or a URL pattern.
  3. In the Target Value column, enter the name of the servlet or the URL depending on your selection in the previous column.
  4. In the Cache Reference column, select whether this target is a Cache Policy Reference or Cache Helper Reference.
  5. In the Reference Value column, enter the policy value.

To delete a Cache Mapping Configuration:

  1. Select the row containing the property.
  2. Click the Delete button.

Select Edit Policy dialog box to create cacheability constraints for URL patterns or servlet names.


Legal Notices