Package org.jboss.cache

Examples of org.jboss.cache.DummyTransactionManagerLookup


   public void testWithTransactions() throws Exception {
      cache=new TreeCache();
      cache.setCacheMode(TreeCache.LOCAL);
      cache.setIsolationLevel(IsolationLevel.NONE);
      cache.setTransactionManagerLookup(new DummyTransactionManagerLookup());
      cache.startService();
      tx=startTransaction();
      cache.put(FQN, KEY, VALUE);
      cache.put(FQN + "/d", KEY, VALUE);
      assertTrue(cache.exists(FQN, KEY));
View Full Code Here


   public void testWithTransactionsRepeatableRead() throws Exception {
      cache=new TreeCache();
      cache.setCacheMode(TreeCache.LOCAL);
      cache.setIsolationLevel(IsolationLevel.REPEATABLE_READ);
      cache.setTransactionManagerLookup(new DummyTransactionManagerLookup());
      cache.startService();
      tx=startTransaction();
      cache.put(FQN, KEY, VALUE);
      cache.put(FQN + "/d", KEY, VALUE);
      assertTrue(cache.exists(FQN, KEY));
View Full Code Here

    private void startTest() throws Exception {
        cache = new PojoCache();
        cache.setCacheMode(TreeCache.LOCAL);
        cache.setIsolationLevel(IsolationLevel.REPEATABLE_READ);
        cache.setTransactionManagerLookup(new DummyTransactionManagerLookup());
        cache.create();
        cache.start();
    }
View Full Code Here

      super.setUp();
      cache = new TreeCache();
      cache.setCacheMode(TreeCache.LOCAL);
      cache.setIsolationLevel(IsolationLevel.REPEATABLE_READ);
      if (optLocking) cache.setNodeLockingScheme("OPTIMISTIC");
      cache.setTransactionManagerLookup(new DummyTransactionManagerLookup());
      cache.create();
      cache.start();
   }
View Full Code Here

    protected void setUp() throws Exception
    {
        super.setUp();

        txManager = new DummyTransactionManagerLookup().getTransactionManager();
        cache = new TreeCache();
        PropertyConfigurator config = new PropertyConfigurator();
        config.configure(this.cache, "META-INF/optimistic-eviction.xml");
        cache.startService();
    }
View Full Code Here

      super.setUp();
      cache = new PojoCache();
      cache.setCacheMode(TreeCache.LOCAL);
      cache.setIsolationLevel(IsolationLevel.REPEATABLE_READ);
      if (optLocking) cache.setNodeLockingScheme("OPTIMISTIC");
      cache.setTransactionManagerLookup(new DummyTransactionManagerLookup());
      cache.create();
      cache.start();
   }
View Full Code Here

   {
       TreeCache cache = new TreeCache();
       try
       {
           cache.setCacheMode(TreeCache.LOCAL);
           cache.setTransactionManagerLookup(new DummyTransactionManagerLookup());
           cache.startService();

           TransactionManager m = cache.getTransactionManager();

           m.begin();
View Full Code Here

   {
       TreeCache cache = new TreeCache();
       try
       {
           cache.setCacheMode(TreeCache.LOCAL);
           cache.setTransactionManagerLookup(new DummyTransactionManagerLookup());
           cache.startService();

           TransactionManager m = cache.getTransactionManager();

           m.begin();
View Full Code Here

    {
        TreeCache cache = new TreeCache();
        try
        {
            cache.setCacheMode(TreeCache.LOCAL);
            cache.setTransactionManagerLookup(new DummyTransactionManagerLookup());
            cache.startService();

            TransactionManager m = cache.getTransactionManager();

            cache.put(fqn, "x", "y");
View Full Code Here

TOP

Related Classes of org.jboss.cache.DummyTransactionManagerLookup

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.