Examples of DummyTransactionManager


Examples of org.jboss.cache.transaction.DummyTransactionManager

        {
            log.debug("Starting test");
            TreeCache cache1 = createSyncReplicatedCache();
            TreeCache cache2 = createSyncReplicatedCache();
            log.debug("Created caches");
            DummyTransactionManager mgr = DummyTransactionManager.getInstance();

            int numLoops = 5, numPuts = 5;


            log.debug("Starting " + numLoops + " loops");
            for (int i = 0; i < numLoops; i++)
            {
                log.debug(" *** in loop " + i);
                mgr.begin();
                for (int j = 0; j < numPuts; j++)
                {
                    cache1.put(Fqn.fromString("/profiler/node" + i), "key" + j, "value" + j);
                }
                log.debug("*** >> Out of put loop");
                mgr.commit();
                //cache2.get(Fqn.fromString("/profiler/node" + i));
            }

            destroyCache(cache1);
            destroyCache(cache2);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.