anchor.diff:  <?xml version="1.0" encoding="UTF-8"?>
   <infinispan
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  -    xsi:schemaLocation="urn:infinispan:config:6.0 http://www.infinispan.org/schemas/infinispan-config-6.0.xsd"
  -    xmlns="urn:infinispan:config:6.0">
  -
  -    <global>
  -        <transport
  -            clusterName="HibernateOGM-Infinispan-cluster">
  -            <properties>
  -                <property name="configurationFile" value="my-jgroups-conf.xml" />
  -            </properties>
  -        </transport>
  -    </global>
  -
  -    <default>
  -        <clustering
  -            mode="distribution" />
  -    </default>
  -
  -    <namedCache name="User">
  +    xsi:schemaLocation="urn:infinispan:config:7.0 http://www.infinispan.org/schemas/infinispan-config-7.0.xsd"
  +    xmlns="urn:infinispan:config:7.0">
  +
  +    <jgroups>
  +        <stack-file name="custom-stack" path="my-jgroups-conf.xml" />
  +    </jgroups>
  +
  +    <cache-container name="HibernateOGM" default-cache="DEFAULT">
  +        <transport stack="custom-stack" />
  +
  +        <!-- *************************************** -->
  +        <!--     Default cache used as template      -->
  +        <!-- *************************************** -->
  +        <distrubuted-cache name="DEFAULT" mode="SYNC">
  +            <locking striping="false" acquire-timeout="10000"
  +                concurrency-level="500" write-skew="false" />
  +            <transaction mode="NON_DURABLE_XA"
  +                transaction-manager-lookup="org.infinispan.transaction.lookup.JBossStandaloneJTAManagerLookup" />
  +            <state-transfer enabled="true" timeout="480000"
  +                await-initial-transfer="true" />
  +        </distributed-cache>
  +
           <!-- Override the cache mode: -->
  -        <clustering mode="replication" />
  -    </namedCache>
  -
  -    <namedCache
  -        name="Order">
  -    </namedCache>
  -
  -    <namedCache name="associations_User_Order">
  -    </namedCache>
  +        <replicated-cache name="User" mode="SYNC">
  +            <locking striping="false" acquire-timeout="10000"
  +                concurrency-level="500" write-skew="false" />
  +            <transaction mode="NON_DURABLE_XA"
  +                transaction-manager-lookup="org.infinispan.transaction.lookup.JBossStandaloneJTAManagerLookup" />
  +            <state-transfer enabled="true" timeout="480000"
  +                await-initial-transfer="true" />
  +        </replicated-cache>
  +
  +        <distributed-cache name="Order" mode="SYNC">
  +            <locking striping="false" acquire-timeout="10000"
  +                concurrency-level="500" write-skew="false" />
  +            <transaction mode="NON_DURABLE_XA"
  +                transaction-manager-lookup="org.infinispan.transaction.lookup.JBossStandaloneJTAManagerLookup" />
  +            <state-transfer enabled="true" timeout="480000"
  +                await-initial-transfer="true" />
  +        </distributed-cache>
  +
  +        <distributed-cache name="associations_User_Order" mode="SYNC">
  +            <locking striping="false" acquire-timeout="10000"
  +                concurrency-level="500" write-skew="false" />
  +            <transaction mode="NON_DURABLE_XA"
  +                transaction-manager-lookup="org.infinispan.transaction.lookup.JBossStandaloneJTAManagerLookup" />
  +            <state-transfer enabled="true" timeout="480000"
  +                await-initial-transfer="true" />
  +        </distributed-cache>
  +
  +    </cache-container>
   
   </infinispan>
   ----
  
positive.code: <?xml version="1.0" encoding="UTF-8"?>
  <infinispan
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="urn:infinispan:config:6.0 http://www.infinispan.org/schemas/infinispan-config-6.0.xsd"
      xmlns="urn:infinispan:config:6.0">
  
  
      <global>
      </global>
  
      <default>
      </default>
  
      <namedCache name="User">
      </namedCache>
  
      <namedCache name="Order">
      </namedCache>
  
      <namedCache name="associations_User_Order">
      </namedCache>
  
  </infinispan>
  ----
  ====
  
  The +global+ section contains elements which affect the whole instance;
  mainly of interest for Hibernate OGM users is the +transport+ element
  in which we will set JGroups configuration overrides.
  
  In the +namedCache+ section (or in +default+ if we want to affect all named caches)
  we will likely want to configure clustering modes, eviction policies and ++CacheStore++s.
  
  [[ogm-infinispan-storage]]
  
  
negative.code: [[ogm-infinispan]]
  
  // vim: set colorcolumn=100:
  
  == Infinispan
  
  