1 7 package ersatz.resourceadapter; 8 9 import javax.resource.ResourceException; 10 import javax.resource.spi.ManagedConnectionMetaData; 11 12 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 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 |