0 Replies Latest reply on Nov 24, 2013 9:29 PM by Newbie Infini

    How Infinispan works with Hibernate Search

    Newbie Infini Newbie

      Hi all,

       

      I am using infinispan cache for my project with Hibernate Search. I have configured infinispan settings through Persistence.xml file (default-hibernatesearch-infinispan).
      It is working absolutely fine. But I would like to know how it works with Hibernate Search. I have read the Documentations of Infinispan which gives information mostly about how to configure it. Just want to know the working logic for each tags in below configuration.
      The sample tags of infinispan are,
      <infinispan>
           <global>
            

                <globalJmxStatistics   enabled="true"         cacheManagerName="HibernateSearch"             allowDuplicateDomains="true" />

               <transport       clusterName="HibernateSearch-Infinispan-cluster"  >

       

               </transport>

       

              <shutdown           hookBehavior="DONT_REGISTER" />

       

          </global>

       

      <default> ..... </default>

      <namedCache

              name="LuceneIndexesData">

      <storeAsBinary enabled="true"/>

         <clustering

                  mode="replication">

                  <stateTransfer

                      fetchInMemoryState="true" />

                  <async useReplQueue="true" replQueueInterval="300" asyncMarshalling="false" /> 

              </clustering>

            <invocationBatching enabled="true" /> 

            <jmxStatistics enabled="true" />

            <eviction wakeUpInterval="2000" maxEntries="1000" strategy="UNORDERED" /> 

            <expiration maxIdle="-1" /> 

          </namedCache>

       

      And now my questions are,

       

      1. How it differentiates between all namedcaches? How it recognizes between these cache partitions?

      2. What if I want to change clusterName="HibernateSearch-Infinispan-cluster" to some other name?

       

      Please point out me if there is already documentations and explanations to understand how each each tags works in this configuration file ((default-hibernatesearch-infinispan)).

       

       

      Thanks and Regards,

      newbieinfini