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

org.hibernate.ogm.datastore.infinispan.default-config.xml Maven / Gradle / Ivy

There is a newer version: 5.4.2.Final
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<!--
 ~ Hibernate OGM, Domain model persistence for NoSQL datastores
 ~
 ~ License: GNU Lesser General Public License (LGPL), version 2.1 or later
 ~ See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
  -->
<infinispan
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="urn:infinispan:config:9.2 http://www.infinispan.org/schemas/infinispan-config-9.2.xsd"
    xmlns="urn:infinispan:config:9.2">

    <jgroups>
        <!-- This is the default JGroups stack -->
        <stack-file name="default-udp" path="default-configs/default-jgroups-udp.xml" />
    </jgroups>

    <cache-container name="HibernateOGM" default-cache="DEFAULT" statistics="false" shutdown-hook="DONT_REGISTER">
        <transport stack="default-udp" />
        <jmx duplicate-domains="true" />

        <global-state>
            <persistent-location path="${java.io.tmpdir}/counters"/>
        </global-state>

        <distributed-cache-configuration name="OGM-template">
            <locking striping="false" acquire-timeout="10000" concurrency-level="5" isolation="READ_COMMITTED"/>
            <transaction mode="NON_DURABLE_XA" transaction-manager-lookup="org.infinispan.transaction.lookup.JBossStandaloneJTAManagerLookup" />
            <eviction strategy="NONE" />
            <expiration max-idle="-1" />
            <indexing index="NONE" />
            <state-transfer timeout="480000" await-initial-transfer="true" />
        </distributed-cache-configuration>

        <!-- *************************************** -->
        <!--     Default cache used as template      -->
        <!-- *************************************** -->
        <distributed-cache name="DEFAULT" configuration="OGM-template" />

        <!-- *************************************** -->
        <!--     Cache to store the OGM entities     -->
        <!-- *************************************** -->
        <distributed-cache name="ENTITIES" configuration="OGM-template" />

        <!-- *********************************************** -->
        <!--   Cache to store the relations across entities  -->
        <!-- *********************************************** -->
        <distributed-cache name="ASSOCIATIONS" configuration="OGM-template" />

        <!-- ***************************** -->
        <!--   Cache to store identifiers  -->
        <!-- ***************************** -->
        <distributed-cache name="IDENTIFIERS" configuration="OGM-template" />

    </cache-container>

</infinispan>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy