KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ersatz > resourceadapter > ManagedConnectionMetaDataImpl


1 /*
2  * Created on December 11, 2003
3  *
4  * ManagedConnectionMetaDataImpl.java is a Resource Adapter class to test the
5  * J2EE Connector as implemented by JOnAS.
6  */

7 package ersatz.resourceadapter;
8
9 import javax.resource.ResourceException;
10 import javax.resource.spi.ManagedConnectionMetaData;
11
12 /**
13  * @author Bob Kruse
14  *
15  * used to test the J2EE Connector as implemented by JOnAS.
16  *
17  */

18 public class ManagedConnectionMetaDataImpl
19     implements ManagedConnectionMetaData
20 {
21     String cName = "ManagedConnectionMetaDataImpl";
22     public String product="Ersatz EIS";
23     public String version="1.5";
24     public String userName="Ersatz_User_Name";
25     //
26
// constructor
27
public ManagedConnectionMetaDataImpl()
28     {
29     }
30
31     public String getEISProductName()
32         throws ResourceException
33     {
34         Utility.log(cName+".getEISProductName");
35         return product;
36     }
37
38     public String getEISProductVersion()
39         throws ResourceException
40     {
41         Utility.log(cName+".getEISProductVersion");
42         return version;
43     }
44
45     public int getMaxConnections()
46         throws ResourceException
47     {
48         Utility.log(cName+".getMaxConnections");
49         return 0;
50     }
51     public String getUserName() {
52         Utility.log(cName+".getUserName="+userName);
53         return userName;
54     }
55
56 }
57
Popular Tags