Examples of throwAppRuntimeException()


Examples of org.jboss.ejb3.tx.test.metadata.MyStateful.throwAppRuntimeException()

      MyStateful bean = container.constructProxy(MyStateful.class);
     
      tm.begin();
      try
      {
         bean.throwAppRuntimeException();
         fail("Should have thrown AppRuntimeException");
      }
      catch(AppRuntimeException e)
      {
         assertEquals("Transaction should have been marked for rollback", Status.STATUS_MARKED_ROLLBACK, tm.getStatus());
View Full Code Here

Examples of org.jboss.ejb3.tx.test.metadata.MyStateful.throwAppRuntimeException()

      MyStateful bean = container.constructProxy(MyStateful.class);
     
      tm.begin();
      try
      {
         bean.throwAppRuntimeException();
         fail("Should have thrown EJBTransactionRolledbackException");
      }
      catch(EJBTransactionRolledbackException e)
      {
         // good, it's not an application exception
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.