1 25 package org.objectweb.easybeans.tests.common.ejbs.base.transaction; 26 27 import javax.ejb.TransactionAttribute ; 28 import javax.ejb.TransactionAttributeType ; 29 import javax.ejb.TransactionManagement ; 30 import javax.ejb.TransactionManagementType ; 31 import javax.naming.NamingException ; 32 33 import org.objectweb.easybeans.tests.common.exception.TransactionException; 34 35 41 @TransactionManagement (value = TransactionManagementType.CONTAINER) 42 public class ContainerTransactionRequiredNew extends ContainerTransaction { 43 44 50 @TransactionAttribute (value = TransactionAttributeType.REQUIRES_NEW) 51 @Override 52 public void insertCorrectTableInBothDB(final String db1, final String db2) throws Exception { 53 super.insertCorrectTableInBothDB(db1, db2); 54 } 55 56 63 @TransactionAttribute (value = TransactionAttributeType.REQUIRES_NEW) 64 @Override 65 public void insertCorrectFirstErrorSecond(final String db1, final String db2) throws Exception { 66 super.insertCorrectFirstErrorSecond(db1, db2); 67 } 68 69 74 @Override 75 @TransactionAttribute (value = TransactionAttributeType.REQUIRES_NEW) 76 public boolean getRollbackOnly() throws TransactionException { 77 return super.getRollbackOnly(); 78 } 79 80 86 @Override 87 @TransactionAttribute (value = TransactionAttributeType.REQUIRES_NEW) 88 public void setRollbackOnly(final String dbName1, final String dbName2) throws Exception , NamingException { 89 super.setRollbackOnly(dbName1, dbName2); 90 } 91 92 98 @Override 99 @TransactionAttribute (value = TransactionAttributeType.REQUIRES_NEW) 100 public void insertTablesUsingAuxBeanReq(final String db1, final String db2) throws Exception { 101 super.insertTablesUsingAuxBeanReq(db1, db2); 102 } 103 104 110 @Override 111 @TransactionAttribute (value = TransactionAttributeType.REQUIRES_NEW) 112 public void insertTablesUsingAuxBeanNotSup(final String db1, final String db2) throws Exception { 113 super.insertTablesUsingAuxBeanNotSup(db1, db2); 114 } 115 116 120 @Override 121 @TransactionAttribute (value = TransactionAttributeType.REQUIRES_NEW) 122 public void getUserTransactionWithLookup() throws Exception { 123 super.getUserTransactionWithLookup(); 124 } 125 126 130 @Override 131 @TransactionAttribute (value = TransactionAttributeType.REQUIRES_NEW) 132 public void getUserTransactionWithEJBContext() throws Exception { 133 super.getUserTransactionWithEJBContext(); 134 } 135 } 136 | Popular Tags |