Use servlet cache instances

 

+

Search Tips   |   Advanced Search

 

 

Overview

Perform this task so that your application can access dynamic cache servlet cache instances.

 

Procedure

  1. Enable the dynamic cache service

  2. Enable servlet caching.

  3. Configure one or more cache instances.

    1. In the console, click...

      Resources | Cache instances | Servlet cache instances

    2. Specify the scope of the cache instance.

      Specify a scope of cell to make the cache instance available to all the servers that are in the cell. Node scope makes the cache instance available to all servers in a node. Server scope makes the cache instance available to the selected server only. If necessary, you can mix the scopes.

    3. Click Apply to save the scope.

    4. Specify the settings for the cache instance.

      The Name and JNDI name fields are required. The JNDI name is the name attribute that is specified in the <cache-instance> element in the cachepec.xml file.

      Here is an example of a JNDI name that is specified in the cachespec.xml...

      <cache-instance name="services/cache/instance_one">

      In this example, specify services/cache/instance_one as the JNDI name.

  4. Update your application.

    To use a servlet cache instance, specify a <cache-instance> element that has a name that is equal to the JNDI Name for this cache instance.



Servlet cache instance collection
Servlet cache instance settings
Use the DynamicContentProvider interface for dynamic cache

 

Related concepts

Cache instances

 

Related tasks

Use object cache instances
Task overview: Using the dynamic cache service to improve performance