1 2 Previous Next 17 Replies Latest reply on Feb 17, 2011 11:06 AM by Galder Zamarreño

    Cache inserts inside a transaction are not propagated across the cluster

    Sudheer Krishna Novice

      Hi ,

       

      I am using a simple cache in a clusterd mode (dist_sync).

       

      When i do any puts , the data is updated in all the nodes across the cluster.

       

      But when i do this put inside a transaction data updates happen only in the local node and are not propagted in the cluster. i am using a JTA compaint transaction manager(atomokos).

       

      Transaction commit happens and are visible in teh same vm.

       

      I do not see any error logs on commit. Is there any suggested way to debug this ?

       

      This is my cache configuration.

       

      <global>
        <transport clusterName="tspexCluster">
         <properties>
          <property name="configurationFile" value="jgroups-tcp.xml" />
         </properties>
        </transport>
      </global>


      <default>
        <jmxStatistics enabled="true" />
        <transaction transactionManagerLookupClass="com.tspex.cache.infinispan.TransactionManagerLookUp"
         syncRollbackPhase="true" syncCommitPhase="true" useEagerLocking="true" />
      </default>


      <namedCache name="accountCache">
        <clustering mode="distribution">
         <sync />
         <hash numOwners="2" rehashWait="120000" rehashRpcTimeout="600000" />
        </clustering>
      </namedCache>

       

      Is there any other configuration i need to enable ?

       

        1 2 Previous Next