Examples of TransactionInfo


Examples of org.springframework.transaction.interceptor.TransactionAspectSupport.TransactionInfo

   
    final String spouseName = "innerName";

    TestBean outer = new TestBean() {
      public void exceptional(Throwable t) throws Throwable {
        TransactionInfo ti = TransactionAspectSupport.currentTransactionInfo();
        assertTrue(ti.hasTransaction());
        assertEquals(spouseName, getSpouse().getName());
      }
    };
    TestBean inner = new TestBean() {
      public String getName() {
        // Assert that we're in the inner proxy
        TransactionInfo ti = TransactionAspectSupport.currentTransactionInfo();
        assertFalse(ti.hasTransaction());
        return spouseName;
      }
    };
   
    ITestBean outerProxy = (ITestBean) advised(outer, ptm, tas);
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.