<?xml version="1.0"?>
<!DOCTYPE cache PUBLIC
    "-//GemStone Systems, Inc.//GemFire Declarative Cache 5.1//EN"
    "http://www.gemstone.com/dtd/cache5_1.dtd">
<cache is-server="true" search-timeout="60">
  <cache-transaction-manager>
    <transaction-listener>
       <class-name>com.company.data.MyTransactionListener</class-name>
       <parameter name="URL">
         <string>jdbc:cloudscape:rmi:MyData</string>
       </parameter>
    </transaction-listener>    
  </cache-transaction-manager>

  <bridge-server port="12345" max-connections="256"/>

  <region name="myRegion">
    <region-attributes data-policy="replicate" scope="global" statistics-enabled="true">
      <entry-time-to-live>
        <expiration-attributes action="invalidate" timeout="60"/>
      </entry-time-to-live>
      <cache-loader>
        <class-name>com.company.data.DatabaseLoader</class-name>
        <parameter name="URL">
          <string>jdbc:cloudscape:rmi:MyData</string>
        </parameter>
      </cache-loader>
    </region-attributes>
  </region>
  <region name="myOtherRegion">
    <region-attributes statistics-enabled="true"
      scope="distributed-ack">
    </region-attributes>
    <entry>
      <key><string>MyKey</string></key>
      <value><string>MyValue</string></value>
    </entry>
    <entry>
      <key><string>MyOtherKey</string></key>
      <value>
        <declarable>
          <class-name>com.company.data.MyDeclarable</class-name>
        </declarable>
      </value>
    </entry>
  </region>
</cache>
