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

DeploymentDescriptorStatefulBean

public class DeploymentDescriptorStatefulBean extends Object implements DeploymentDescriptorStatefulLocal
version
$Revision: 60233 $
author
William DeCoste

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();