1 25 package org.objectweb.easybeans.tests.common.ejbs.base.xmldescriptor; 26 27 import javax.naming.NamingException ; 28 import javax.transaction.HeuristicMixedException ; 29 import javax.transaction.HeuristicRollbackException ; 30 import javax.transaction.NotSupportedException ; 31 import javax.transaction.RollbackException ; 32 import javax.transaction.SystemException ; 33 import javax.transaction.UserTransaction ; 34 35 import org.objectweb.easybeans.tests.common.exception.TransactionException; 36 import org.objectweb.easybeans.tests.common.helper.TransactionHelper; 37 38 44 public class BasicBean implements ItfBasicBeanLocal, ItfBasicBeanRemote { 45 46 54 public void openTransaction() throws NamingException , NotSupportedException , SystemException { 55 UserTransaction utx = TransactionHelper.getUserTransaction(); 56 utx.begin(); 57 } 58 59 74 public void verifyBMT() throws IllegalStateException , SecurityException , HeuristicMixedException , 75 HeuristicRollbackException , RollbackException , SystemException , NotSupportedException , NamingException { 76 UserTransaction utx = TransactionHelper.getUserTransaction(); 77 utx.begin(); 78 utx.commit(); 79 } 80 } 81 | Popular Tags |