This topic describes common VMware Tanzu GemFire configuration changes for AppServers.

Overriding Region Attributes

When using HTTP Session Management extensions, you cannot override region attributes directly on the cache server. You must place all region attribute definitions in the region attributes template that you customize within the application server. For example, to specify a different name for the region’s disk store, you could do the following:

  1. Add the new disk-store-name specification to the region attributes template and then reference the template on the cache server.

    <region-attributes id="MY_SESSIONS" refid="PARTITION_REDUNDANT_PERSISTENT_OVERFLOW" disk-store-name="mystore">
      ...
    </region-attributes>
    
  2. On the cache server side, reference the modified region attributes template to allow the region to use the disk-store-name attribute:

    <region name="gemfire_modules_sessions" refid="MY_SESSIONS"/>
    
  3. Specify the region attributes ID as a value for the region_attributes_id parameter in web.xml. For example, if you want to enable the region-attributes in the above example for a specific Web application, you would configure the Web application’s web.xml in the following manner:

    <filter>
      ...
      <init-param>
        <param-name>gemfire.cache.region_attributes_id</param-name>
        <param-value>MY_SESSIONS</param-value>
      </init-param>
      ...
    </filter>
    
check-circle-line exclamation-circle-line close-line
Scroll to top icon