Package org.jboss.cache.transaction

Examples of org.jboss.cache.transaction.DummyTransactionManager


      oldFactory_ = System.getProperty(Context.INITIAL_CONTEXT_FACTORY);
      System.setProperty(Context.INITIAL_CONTEXT_FACTORY, FACTORY);

      DummyTransactionManager.getInstance();
      nodeList_ = nodeGen(depth_, children_);
      tm_ = new DummyTransactionManager();

      log("ReplicatedAsyncPerfAopTest: cacheMode=REPL_ASYNC");
   }
View Full Code Here


      return retval;
   }


   Transaction beginTransaction() throws SystemException, NotSupportedException {
      DummyTransactionManager mgr=DummyTransactionManager.getInstance();
      mgr.begin();
      Transaction tx=mgr.getTransaction();
      return tx;
   }
View Full Code Here

         cache.stopService();
      }
   }

   private Transaction startTransaction() throws Exception {
      DummyTransactionManager mgr=DummyTransactionManager.getInstance();
      mgr.begin();
      return mgr.getTransaction();
   }
View Full Code Here

      System.setProperty(Context.INITIAL_CONTEXT_FACTORY, FACTORY);

      DummyTransactionManager.getInstance();
      initCaches(TreeCache.LOCAL);
      nodeList_ = nodeGen(depth_, children_);
      tm_ = new DummyTransactionManager();

      log("LocalStressTestCase: cacheMode=TRANSIENT, one cache");
   }
View Full Code Here

         seed_ = seed;
         random_ = new Random(seed);
      }

      private Transaction startTransaction() throws Exception {
         DummyTransactionManager mgr=DummyTransactionManager.getInstance();
         mgr.begin();
         return mgr.getTransaction();
      }
View Full Code Here

      oldFactory_ = System.getProperty(Context.INITIAL_CONTEXT_FACTORY);
      System.setProperty(Context.INITIAL_CONTEXT_FACTORY, FACTORY);

      DummyTransactionManager.getInstance();
      initCaches(TreeCache.LOCAL);
      tm_ = new DummyTransactionManager();

      log("LocalPerfAopTest: cacheMode=LOCAL, one cache");
      populateMap();
      nodeList_ = nodeGen(depth_, children_);
   }
View Full Code Here

      c.startService();
      return c;
   }

   Transaction startTransaction() {
      DummyTransactionManager mgr=DummyTransactionManager.getInstance();
      try {
         mgr.begin();
         return mgr.getTransaction();
      }
      catch(Throwable t) {
         return null;
      }
   }
View Full Code Here

      oldFactory_ = System.getProperty(Context.INITIAL_CONTEXT_FACTORY);
      System.setProperty(Context.INITIAL_CONTEXT_FACTORY, FACTORY);

      DummyTransactionManager.getInstance();
      initCaches(TreeCache.LOCAL);
      tm_ = new DummyTransactionManager();

      originalStrBuf_ = new StringBuffer();
      newStrBuf_ = new StringBuffer();
      generateString();
      log("ReplicatedasyncMapPerfAopTest: cacheMode=replAsync");
View Full Code Here

      c.startService();
      return c;
   }

   Transaction startTransaction() {
      DummyTransactionManager mgr=DummyTransactionManager.getInstance();
      try {
         mgr.begin();
         return mgr.getTransaction();
      }
      catch(Throwable t) {
         return null;
      }
   }
View Full Code Here

      list.add(ben);

      cache.putObject("/list", list);   // stored in cache loader
      list = (ArrayList)cache.getObject("/list");

      DummyTransactionManager mgr=DummyTransactionManager.getInstance();
      try {
         mgr.begin();
         tx=mgr.getTransaction();
         list.remove(joe);
      } catch (Exception ex)
      {
        fail("This is currently a known problem (JBCACHE-477) that we need to fix.");
      } finally
View Full Code Here

TOP

Related Classes of org.jboss.cache.transaction.DummyTransactionManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.