Hitachi

uCosminexus Application Server XML Processor User Guide


3.3.4 Using the schema cache

When using the XML parser to execute the schema validation, the operations of the user for using the schema cache functionality are not required. The XML parser decides whether to use the schema cache functionality or not, and when using the schema cache functionality, the schema validation is executed automatically using the schema cache. When the schema cache is not used or when the cache is not found, schema validation is executed after creating grammar objects same as is done in the past XML parser.

Note that when a failure occurs while reading the grammar objects from the disk cache file, a warning message (KECX09512-W) is output. The XML parser does not use a cache that could not be read, so the schema validation is executed using the schema document.

With the schema cache functionality, you can use the following commands to control a cache or to check status:

Table 3‒4: Schema cache functionality commands

No.

File name of the command

Functionality

Windows

UNIX

1

cacheoff.bat

cacheoff

Disables the schema cache functionality, and deletes the cache.

2

cacheon.bat

cacheon

Enables the schema cache functionality, and reset up the cache.

3

cachestate.bat

cachestate

Displays status of the schema cache functionality.

All the command files are saved in the bin directory below JAXP_DIR#. To use the commands, you must set up the bin directory below JAXP_DIR# with the PATH environment variable.

#

This is the jaxp directory in the directory where Cosminexus is installed.

For details about the commands, see the subsection 3.3.5 Deleting and resetting the schema cache.