1 Reply Latest reply on Dec 14, 2017 11:30 AM by Galder Zamarreño

    Wildfly 10.1.0 treecache invocationBatching

    Kelvin Carman Newbie

      When trying to get the cache as a treecache I get the following exception.

       

      Caused by: org.infinispan.commons.CacheConfigurationException: invocationBatching is not enabled for cache 'treeCache'. Make sure this is enabled by calling configurationBuilder.invocationBatching().enable()

       

      I have tried different ways of enabling the invocationBatching but nothing seems to work.

      This is the configuration that we are using in wildfly config.

       

      <cache-container name="MyCacheContainer" aliases="TreeCache" default-cache="defCache" module="org.wildfly.clustering.server" jndi-name="java:jboss/MyCacheContainer">
                      <transport lock-timeout="60000"/>
                      <replicated-cache name="defCache" mode="ASYNC">
                          <transaction mode="BATCH"/>
                      </replicated-cache>
                      <replicated-cache name="treeCache" mode="ASYNC">
                          <transaction mode="BATCH"/>
                      </replicated-cache>
                  </cache-container>
            

       

      In Wildfly 8 we could get the cache with the following line.

      stickyTreeCache = new TreeCacheFactory().createTreeCache(this.cacheManager.getCache("treeCache"));