WebSphere Application Server Network Deployment, Version 6.1
             Operating Systems: AIX, HP-UX, i5/OS, Linux, Solaris, Windows, z/OS

             Personalize the table of contents and search results

Using servlet cache instances

Use this task to configure servlet cache instances.

Before you begin

Before you begin, enable the dynamic cache service. See Enabling the dynamic cache service for more information.

About this task

Perform this task so that your application can access dynamic cache servlet cache instances. Using servlet cache instances can improve the performance of your application because you 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. See Cache instances for more information.

Procedure

  1. Enable servlet caching. See Configuring servlet caching for more information.
  2. Configure one or more cache instances.
    1. In the administrative 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 Java Naming and Directory interface (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. An example of a JNDI name that is specified in the cachespec.xml file follows:
      <cache-instance name="services/cache/instance_one">
      In this example, specify services/cache/instance_one as the JNDI name.
  3. Update your application. To use a servlet cache instance, you must specify a <cache-instance> element that has a name that is equal to the JNDI Name for this cache instance.



In this information ...


Related concepts

IBM Redbooks, demos, education, and more


Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

IBM Suggests
Task topic    

Terms of Use | Feedback

Last updated: Feb 25, 2009 9:32:38 AM CST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.nd.multiplatform.doc/info/ae/ae/tdyn_servletcacheinstance.html