uCosminexus Application Server, Web Container Functionality Guide
Specify whether you want to use the static contents cache functionality, memory size of static contents permitting cache, and upper limit for the file size for each Web application.
This subsection describes the definitions in the DD required in the application development environment.
Specify the definition of static contents cache in each Web application in the <param-name> tag that exists in the <web-app><context-param> tag of web.xml.
The following table lists the definitions of the static contents cache in the DD:
Table 2-64 Definitions of the static contents cache in the DD
Items | Parameters specified in <param-name> tag | Set contents in <param-value> tag |
---|---|---|
Enabling or disabling the static contents cache functionality | com.hitachi.software.web.static_content.cache.enabled | Specifies the enabling or disabling of the static contents cache functionality. |
Memory size in each Web application | com.hitachi.software.web.static_content.cache.size | Specifies the size that can be cached in the memory in bytes if the static contents cache functionality is enabled.
|
File size permitting cache | com.hitachi.software.web.static_content.cache.filesize.threshold | Specifies the cacheable file size in bytes if the static contents cache functionality is enabled.
|
An example of the DD definition is as follows:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'http: //java.sun.com/dtd/web-app_2_3.dtd'> <web-app> <context-param> <param-name> com.hitachi.software.web.static_content.cache.enabled </param-name>- <param-value>true</param-value> </context-param> <context-param> <param-name> com.hitachi.software.web.static_content.cache.size </param-name> <param-value>5242880</param-value> </context-param> <context-param> <param-name> com.hitachi.software.web.static_content.cache.filesize.threshold </param-name> <param-value>102400</param-value> </context-param> </web-app> |
The above definition example defines the following contents:
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.