All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.gemstone.gemfire.cache.doc-files.example2-cache.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0"?>
<!DOCTYPE cache PUBLIC
    "-//GemStone Systems, Inc.//GemFire Declarative Cache 7.5//EN"
    "http://www.gemstone.com/dtd/cache7_5.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>

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

  <region name="myRegion" refid="REPLICATE">
    <region-attributes scope="global">
      <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" refid="REPLICATE">
    <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>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy