1 8 package ersatz.resourceadapter; 9 10 import javax.transaction.xa.Xid; 11 import javax.resource.NotSupportedException; 12 13 21 public class ExecutionContext 22 { 23 private Xid xid; 24 private long seconds; 25 String cName = "ExecutionContext"; 26 27 public void setXid(Xid xid) 28 { 29 this.xid=xid; 30 Utility.log(cName+".setXid of="+xid); 31 } 32 public Xid getXid() 33 { 34 return xid; 35 } 36 public long getTransactionTimeout() 37 { 38 return seconds; 39 } 40 public void setTransactionTimeout(long seconds) 41 throws NotSupportedException 42 { 43 Utility.log(cName+".setTransactionTimeout seconds="+seconds); 44 this.seconds=seconds; 45 } 46 } | Popular Tags |