Transactional modes

The transaction mode attribute is slightly different in Infinispan 6 and 7. In Infinispan 6, the transactionalMode attribute configures whether the cache is transactional or not.

In the next example, we can see a sample configuration using Infinispan 6:

  • <transaction transactionMode="NON_TRANSACTIONAL"/>
  • <transaction transactionMode="TRANSACTIONAL"/>

Starting with Infinispan 5.1, you cannot mix transactional and non-transactional operations anymore; you have to decide which cache mode you want to use.

There are many reasons to follow this path, but one of the most important reasons is the clean semantics on how concurrency is managed between multiple requestors for the same cache entry. If we were allowed to mix transactional and ...

Get Infinispan Data Grid Platform Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.