Sun GlassFish Enterprise Server v3 Prelude Application Deployment Guide

default-helper

Passes property values to the built-in default cache-helper class.

Superelements

cache (sun-web.xml)

Subelements

The following table describes subelements for the default-helper element.

Table A–26 default-helper Subelements

Element 

Required 

Description 

property (with attributes)

zero or more 

Specifies a property, which has a name and a value. 

Properties

The following table describes properties for the default-helper element.

Table A–27 default-helper Properties

Property 

Default 

Description 

cacheKeyGeneratorAttrName

Uses the built-in default cache-helper key generation, which concatenates the servlet path with key-field values, if any.

The caching engine looks in the ServletContext for an attribute with a name equal to the value specified for this property to determine whether a customized CacheKeyGenerator implementation is used. An application can provide a customized key generator rather than using the default helper. See The CacheKeyGenerator Interface in Sun GlassFish Enterprise Server v3 Prelude Developer’s Guide.