Package org.jboss.cache.transaction

Examples of org.jboss.cache.transaction.DummyTransactionManager.suspend()


        Assert.assertNull(loader.get(fqn));

        mgr.begin();
        cache.put(fqn, key, value);
        tx = mgr.getTransaction();
        mgr.suspend();

        // lets see what we've got halfway within a tx
        Assert.assertNull(cache.get(fqn, key));
        Assert.assertNull(loader.get(fqn));
View Full Code Here


        cache.put("/one/two", "key1", pojo);

        assertEquals(pojo, cache.get("/one/two", "key1"));
        //suspend current transaction
        mgr.suspend();

        //start a new transaction
        mgr.begin();
        Transaction tx2 = mgr.getTransaction();
        // inject InvocationContext
View Full Code Here

        SamplePojo pojo = new SamplePojo(21, "test");

        cache.put("/one/two", "key1", pojo);

        mgr.suspend();

        assertEquals(1, cache.getTransactionTable().getNumGlobalTransactions());
        assertEquals(1, cache.getTransactionTable().getNumLocalTransactions());

        assertNull(mgr.getTransaction());
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.