1 24 package org.objectweb.jalisto.se.jca.data; 25 26 import org.objectweb.jalisto.se.impl.trace.Trace; 27 28 import javax.resource.ResourceException ; 29 import javax.resource.spi.ManagedConnectionMetaData ; 30 31 public class JalistoManagedConnectionMetaData implements ManagedConnectionMetaData { 32 private String userName = "guest"; 33 private Trace trace = Trace.current(); 34 private int maxConnections = 5; 35 36 public String getEISProductName() throws ResourceException { 37 return ""; 38 } 39 40 public String getEISProductVersion() throws ResourceException { 41 return ""; 42 } 43 44 public int getMaxConnections() throws ResourceException { 45 trace.println(Trace.JCA, "getMaxConnections"); 46 return maxConnections; 47 } 48 49 public String getUserName() throws ResourceException { 50 trace.println(Trace.JCA, "getUserName"); 51 return userName; 52 } 53 } 54 | Popular Tags |