FileDocCategorySizeDatePackage
StatefulBean.javaAPI DocJBoss 4.2.12677Fri Jul 13 20:53:30 BST 2007org.jboss.ejb3.test.bmt

StatefulBean

public class StatefulBean extends Object implements StatefulLocal
Comment
author
Bill Burke
version
$Revision: 60233 $

Fields Summary
UserTransaction
ut
TransactionManager
tm
Constructors Summary
Methods Summary
public voidbeginCommitEnd()

      if (tm.getTransaction() != null) throw new TestException("THERE IS AN EXISTING TRANSACTION");
      ut.begin();
      ut.commit();
   
public javax.transaction.TransactionbeginNoEnd()

      if (tm.getTransaction() != null) throw new TestException("THERE IS AN EXISTING TRANSACTION");
      ut.begin();
      return tm.getTransaction();
   
public voidbeginRollbackEnd()

      if (tm.getTransaction() != null) throw new TestException("THERE IS AN EXISTING TRANSACTION");
      ut.begin();
      ut.rollback();
   
public voidendCommit(javax.transaction.Transaction old)

      if (old != tm.getTransaction()) throw new TestException("No matching TX");
      ut.commit();
   
public voidendRollback(javax.transaction.Transaction old)

      if (old != tm.getTransaction()) throw new TestException("No matching TX");
      ut.rollback();