1 22 package org.jboss.tm.integrity; 23 24 import javax.transaction.Transaction ; 25 26 import org.jboss.logging.Logger; 27 import org.jboss.tm.TransactionImpl; 28 29 37 public class AbstractTransactionIntegrity implements TransactionIntegrity 38 { 39 40 protected Logger log = Logger.getLogger(getClass()); 41 42 public void checkTransactionIntegrity(TransactionImpl transaction) 43 { 44 } 46 47 52 protected void markRollback(Transaction transaction) 53 { 54 try 55 { 56 transaction.setRollbackOnly(); 57 } 58 catch (Exception e) 59 { 60 log.warn("Unable to mark the transaction for rollback " + transaction, e); 61 } 62 } 63 } 64 | Popular Tags |