01: /*
02: * Created on January 27, 2004
03: *
04: * ExecutionContext.java is used to test JCA 1.5 as implemented by
05: * JOnAS. This class implements the ExecutionContext Interface
06: *
07: */
08: package ersatz.resourceadapter;
09:
10: import javax.transaction.xa.Xid;
11: import javax.resource.NotSupportedException;
12:
13: /**
14: * @author Bob Kruse
15: *
16: * JCA1.5 ExecutionContext class
17: *
18: * used to test the J2EE Connector as implemented by JOnAS.
19: *
20: */
21: public class ExecutionContext {
22: private Xid xid;
23: private long seconds;
24: String cName = "ExecutionContext";
25:
26: public void setXid(Xid xid) {
27: this .xid = xid;
28: Utility.log(cName + ".setXid of=" + xid);
29: }
30:
31: public Xid getXid() {
32: return xid;
33: }
34:
35: public long getTransactionTimeout() {
36: return seconds;
37: }
38:
39: public void setTransactionTimeout(long seconds)
40: throws NotSupportedException {
41: Utility
42: .log(cName + ".setTransactionTimeout seconds="
43: + seconds);
44: this.seconds = seconds;
45: }
46: }
|