KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ersatz > resourceadapter > ExecutionContext


1 /*
2  * Created on January 27, 2004
3  *
4  * ExecutionContext.java is used to test JCA 1.5 as implemented by
5  * JOnAS. This class implements the ExecutionContext Interface
6  *
7  */

8 package ersatz.resourceadapter;
9
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 {
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