2 Replies Latest reply on Jan 26, 2015 7:26 AM by Johannes Hoffmeister

    configure locking / transaction attributes for distributed cache

    Johannes Hoffmeister Newbie

       

      Im trying to configure a infinispan 7.0.0 cluster with distributed caches and some detailed configuration.

      From the Config details in http://docs.jboss.org/infinispan/7.0/configdocs/infinispan-config-7.0.html

      you can see that its possible to have a distributed cache with locking PESSIMISTIC and set for example acquire-timeout in locking options.

      I want to do this in the xml file. The thing is i can only find examples of distributed cache xml where its only like this :

       <distributed-cache name="distributedCache" mode="SYNC" owners="3" l1-lifespan="600000" />

      and no further details configured.

      When i add for example:

       

      <locking isolation="READ_COMMITTED"
        
      acquire-timeout="20000"
        
      write-skew="false"
        
      concurrency-level="5000"
        
      striping="false"
        
      />
        
      <transaction
        
      transaction-manager-lookup="org.infinispan.transaction.lookup.GenericTransactionManagerLookup"
        
      stop-timeout="30000"
        
      auto-commit="true"
        
      locking="OPTIMISTIC"
        
      mode="FULL_XA"
        
      />



      Then i get a Caused by: org.infinispan.commons.CacheConfigurationException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[24,4]
      Message: Unexpected element '{urn:infinispan:config:7.0}locking' encountered.


      So why i am not able to configure locking details for distributed caches?