2 Replies Latest reply on Jul 28, 2011 9:11 AM by James Cameron

    Asynchronous cluster setting doesn't work

    James Cameron Newbie

      Hi,

       

      I configured a clustered cache to be asyschronous, like this:

       

          <global>

              <transport transportClass="org.infinispan.remoting.transport.jgroups.JGroupsTransport">           

              </transport>

          </global>

         

          <default>

              <clustering mode="replication">

                    <stateRetrieval fetchInMemoryState="true"/>

              </clustering>

            </default>

       

          <namedCache name="msg">

              <transaction

                       transactionManagerLookupClass="org.infinispan.transaction.lookup.DummyTransactionManagerLookup"

                       syncRollbackPhase="false"

                       syncCommitPhase="false"

                       useEagerLocking="false"/>

              <eviction wakeUpInterval="500" maxEntries="1000" strategy="LRU"/>

              <invocationBatching enabled="true"/>

              <jmxStatistics enabled="true"/>

          </namedCache>

       

      I didn't add <sysc/> element under clustering element to make it asyschronous. However, this code cacheManager.getDefaultConfiguration().getCacheModeString() returns REPL_SYNC although it is expected to be REPL_ASYNC. I tried to add <async/> under clustering element but got the same result.

       

      Can anyone explain why? Thank you.