xml/HelloWorld.xml

The xml/HelloWorld.xml file is the declarative XML configuration for the GemFire cache. Use this file to set up general cache facilities and behavior and to create and initialize cached data regions. Although it can have any name, this file is generally referred to as cache.xml.

Contents of HelloWorld.xml
<?xml version="1.0"?>
<!DOCTYPE cache PUBLIC
    "-//GemStone Systems, Inc.//GemFire Declarative Caching 6.6//EN" 
"http://www.gemstone.com/dtd/cache6_6.dtd">
<cache>
    <region name="exampleRegion" refid="REPLICATE">
        <cache-listener>
            <class-name>helloworld.SimpleCacheListener</class-name>
        </cache-listener>
    </region>
</cache>