1 Reply Latest reply on Jul 3, 2012 7:44 AM by Martin Gencur

    Infinispan transactions works over several caches?

    Guillermo GARCIA OCHOA Newbie

      I read the documentation about transactions with Infinispan and I saw that the TransactionManager is get from the AdvancedCache interface like this:

       

      javax.transaction.TransactionManager tm =

      ((CacheImpl) myCache).getAdvancedCache().getTransactionManager();


      So, I supose that the scope of the transaction works over a single cache. There is a way to do transactions that works over severral caches? Something like:

       

      tm.begin();

      myCache1.put(...);

      myCache2.put(...);

      tm.commit();

       

      Thx in advance,