InfoCenter Home >
6: Administer applications >
6.6: Tools and resources quick reference >
6.6.0: About user assistance >
6.6.0.4: Overview of editing property files by hand >
6.6.0.4.1: Dynamic caching of Servlets and JSPs

6.6.0.4.1: Dynamic caching of Servlets and JSPs

Use the dynamic caching feature to enhance WebSphere Application Server performance. This in-memory cache uses hooks in WebSphere Application Server's servlet engine to intercept calls to a servlet's service method, checking whether requests can be served from the cache.

After a servlet is executed once, a cache entry is generated containing:

  • The servlet's output
  • Results of the servlet's execution, including calls to other servlets and JSP files
  • Metadata about the servlet's entry in the cache, including timeout values and entry priority information

Each entry in the cache is unique, distinguished by an id string object generated from the HttpServletRequest object. A different id string object is generated for each invocation of the servlet. With this process, a servlet can be cached based on:

  • Request parameters
  • The URI used to invoke the servlet
  • Session information
  • Other servlet properties

To enable dynamic caching, administrators and developers must build two XML configuration files:

Both XML files use UTF-8 (the 8-bit Universal Character Set transformation format) character encoding. Therefore any short Unicode string can be used as a string variable.

Go to previous article: Overview of editing property files by hand Go to next article: dynacache.xml file

 

 
Go to previous article: Overview of editing property files by hand Go to next article: dynacache.xml file