Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-3552

Specifying the batching attribute on caches enables transactions all the time (for whatever value of batching)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 7.1.0.Final
    • None
    • None
    • None
    • Workaround Exists
    • Hide

      Removing the batching attribute (which has the same meaning batching="false") does not change the transactional mode of the cache

      Show
      Removing the batching attribute (which has the same meaning batching="false") does not change the transactional mode of the cache

      From CacheAdd.java

      if (cache.hasDefined(ModelKeys.BATCHING)) {
      InvocationBatchingConfigurationBuilder batchingBuilder = builder.transaction().transactionMode(org.infinispan.transaction.TransactionMode.TRANSACTIONAL).invocationBatching();
      if (cache.get(ModelKeys.BATCHING).asBoolean())

      { batchingBuilder.enable(); }

      else

      { batchingBuilder.disable(); }

      }

              pferraro@redhat.com Paul Ferraro
              NadirX NadirX
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: