Enabling read caching

To enable the read cache for a CHA context, modify the context's definition in the context definition file, dsectxt.xml. Set the readonly attribute to true in the context's definition and in the definition of the context's parent (and upward in the hierarchy to the root context) as shown in the following example:
<context id="branchServerCtx" type="wks" parent="nil?readonly="true">
  <refKColl refId="branchServerData"/>
</context>

<context id="depositCtx" type="op" parent="branchServerCtx" readonly="true">
  <refKColl refId="depositData"/>
</context>

In this example, when the system initializes branchServerCtx and depositCtx, it also creates a read cache for each one.

Related concepts
Read cache