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

    Infinispan transactions works over several caches?

    ggarciao

      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,