01: /*
02: * Created on December 11, 2003
03: *
04: * ManagedConnectionMetaDataImpl.java is a Resource Adapter class to test the
05: * J2EE Connector as implemented by JOnAS.
06: */
07: package ersatz.resourceadapter;
08:
09: 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 implements
19: ManagedConnectionMetaData {
20: String cName = "ManagedConnectionMetaDataImpl";
21: public String product = "Ersatz EIS";
22: public String version = "1.5";
23: public String userName = "Ersatz_User_Name";
24:
25: //
26: // constructor
27: public ManagedConnectionMetaDataImpl() {
28: }
29:
30: public String getEISProductName() throws ResourceException {
31: Utility.log(cName + ".getEISProductName");
32: return product;
33: }
34:
35: public String getEISProductVersion() throws ResourceException {
36: Utility.log(cName + ".getEISProductVersion");
37: return version;
38: }
39:
40: public int getMaxConnections() throws ResourceException {
41: Utility.log(cName + ".getMaxConnections");
42: return 0;
43: }
44:
45: public String getUserName() {
46: Utility.log(cName + ".getUserName=" + userName);
47: return userName;
48: }
49:
50: }
|