WAS v8.5 > End-to-end paths > Dynamic caching > Improving service with the dynamic cache service > Tasks: Using the dynamic cache service to improve performance

Use servlet cache instances

Before beginning, enable the dynamic cache service.

Perform this task so the application can access dynamic cache servlet cache instances. Using servlet cache instances can improve the performance of the application because we can store the output and the side effects of an invoked servlet. Servlet cache instances also give you the necessary control over the cache for multiple applications that are running in an application server.

  1. Enable servlet caching.

  2. Configure one or more cache instances.

    1. In the dmgr console, click...

    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, we 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 specified in the < cache-instance> element in the cachepec.xml file. An example of a JNDI name specified in the cachespec.xml file follows:

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

  3. Update the 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.


Subtopics


Related concepts:
Cache instances
Use object cache instances
Use the dynamic cache service
Configure servlet caching


+

Search Tips   |   Advanced Search