3 Replies Latest reply on Jun 15, 2010 2:05 PM by Galder Zamarreño

    Help needed with repeatable read Atomikos 3.6.5/JBoss Cache 3.2.1

    B Miller Newbie

      Hi everyone,


      I'm trying to get a minimal example of JBoss Cache and repeatable reads running.
      I want to do what is described under "Repeatable-Read Example" at http://community.jboss.org/wiki/JBossCacheMVCC


      I'm using Atomikos EssentialTransactions 3.6.5 as transaction manager and JBoss Cache 3.2.1 GA.
      My code and its output is attached. What I want to see is that thread number 2 which I have
      artificially delayed also reads the value 0, however, it says


      #2 193999500851447 before put: 1


      so it accesses the value modified by thread #1 although thread #2's transaction started before
      thread #1 commits its modified value.


      Can anyone tell me what I'm missing?


      Thanks in advance!
      -- BM