3 Replies Latest reply on Feb 15, 2017 6:35 AM by nadirx

    how to programmatically configure the TransactionMode to the values like FULL_XA, NON_DURABLE_XA, NON_XA, NONE

    sdcf_2006

      I'm using infinispan 7.1.1,  but I noticed that there're 2 enums of  TransactionMode as below

       

      1. https://docs.jboss.org/infinispan/7.1/apidocs/org/infinispan/configuration/cache/TransactionMode.html  (with values:  FULL_XA, NON_DURABLE_XA, NON_XA, NONE)

      2. https://docs.jboss.org/infinispan/7.1/apidocs/org/infinispan/transaction/TransactionMode.html   (with values:  NON_TRANSACTIONAL, TRANSACTIONAL)

       

      When configuring the transactionMode programmatically as below, only the 2nd TransactionMode is accepted.

      configurationBuilder.transaction().transactionMode(org.infinispan.transaction.TransactionMode.NON_TRANSACTIONAL / TRANSACTIONAL);

       

      Then my question is:

      Is the 1st TransactionMode enum above supported?  or how can I configure the cache with the TransactionMode values like  FULL_XA, NON_DURABLE_XA, NON_XA or NONE?