1 22 package org.jboss.proxy.ejb; 23 24 import javax.transaction.HeuristicMixedException ; 25 import javax.transaction.HeuristicRollbackException ; 26 import javax.transaction.RollbackException ; 27 import javax.transaction.Synchronization ; 28 import javax.transaction.SystemException ; 29 import javax.transaction.Transaction ; 30 import javax.transaction.xa.XAResource ; 31 32 39 public class ForeignTransaction implements Transaction 40 { 41 public static final ForeignTransaction instance = new ForeignTransaction(); 42 43 private ForeignTransaction() 44 { 45 } 46 47 public void commit() throws RollbackException , HeuristicMixedException , HeuristicRollbackException , 48 SecurityException , SystemException 49 { 50 throw new UnsupportedOperationException ("Foreign Transaction"); 51 } 52 53 public void rollback() throws IllegalStateException , SystemException 54 { 55 throw new UnsupportedOperationException ("Foreign Transaction"); 56 } 57 58 public void setRollbackOnly() throws IllegalStateException , SystemException 59 { 60 throw new UnsupportedOperationException ("Foreign Transaction"); 61 } 62 63 public int getStatus() throws SystemException 64 { 65 throw new UnsupportedOperationException ("Foreign Transaction"); 66 } 67 68 public boolean enlistResource(XAResource xaRes) throws RollbackException , IllegalStateException , SystemException 69 { 70 throw new UnsupportedOperationException ("Foreign Transaction"); 71 } 72 73 public boolean delistResource(XAResource xaRes, int flag) throws IllegalStateException , SystemException 74 { 75 throw new UnsupportedOperationException ("Foreign Transaction"); 76 } 77 78 public void registerSynchronization(Synchronization sync) throws RollbackException , IllegalStateException , 79 SystemException 80 { 81 throw new UnsupportedOperationException ("Foreign Transaction"); 82 } 83 } 84 | Popular Tags |