1 22 package org.jboss.resource.adapter.jms; 23 24 import javax.resource.ResourceException ; 25 import javax.resource.spi.ManagedConnectionMetaData ; 26 27 34 public class JmsMetaData 35 implements ManagedConnectionMetaData 36 { 37 private JmsManagedConnection mc; 38 39 public JmsMetaData(final JmsManagedConnection mc) { 40 this.mc = mc; 41 } 42 43 public String getEISProductName() throws ResourceException { 44 return "JMS CA Resource Adapter"; 45 } 46 47 public String getEISProductVersion() throws ResourceException { 48 return "0.1"; } 50 51 public int getMaxConnections() throws ResourceException { 52 return 0; 55 } 56 57 public String getUserName() throws ResourceException { 58 return mc.getUserName(); 59 } 60 } 61 | Popular Tags |