1 23 package org.objectweb.joram.client.connector; 24 25 import javax.resource.ResourceException ; 26 import org.objectweb.util.monolog.api.BasicLevel; 27 import org.objectweb.joram.client.jms.ConnectionMetaData; 28 29 33 public class ManagedConnectionMetaDataImpl 34 implements javax.resource.spi.ManagedConnectionMetaData 35 { 36 37 private String userName; 38 39 40 43 public ManagedConnectionMetaDataImpl(String userName) { 44 if (AdapterTracing.dbgAdapter.isLoggable(BasicLevel.DEBUG)) 45 AdapterTracing.dbgAdapter.log(BasicLevel.DEBUG, "ManagedConnectionMetaDataImpl(" + userName + ")"); 46 47 this.userName = userName; 48 } 49 50 51 52 public String getEISProductName() throws ResourceException 53 { 54 return ConnectionMetaData.jmsProviderName; 55 } 56 57 58 public String getEISProductVersion() throws ResourceException 59 { 60 return ConnectionMetaData.providerVersion; 61 } 62 63 64 public int getMaxConnections() throws ResourceException 65 { 66 return 0; 67 } 68 69 70 public String getUserName() throws ResourceException 71 { 72 return userName; 73 } 74 } 75 | Popular Tags |