1 45 package org.exolab.jms.client; 46 47 import java.util.Arrays ; 48 import java.util.Enumeration ; 49 import java.util.Vector ; 50 import javax.jms.ConnectionMetaData ; 51 52 import org.exolab.jms.util.Version; 53 54 55 61 public class JmsConnectionMetaData implements ConnectionMetaData { 62 63 66 private static final Vector PROPERTY_NAMES = new Vector (Arrays.asList( 67 new String []{"JMSXGroupID", "JMSXGroupSeq", "JMSXRcvTimestamp"})); 68 69 74 public String getJMSVersion() { 75 StringBuffer result = new StringBuffer (getJMSMajorVersion()); 76 result.append("."); 77 result.append(getJMSMinorVersion()); 78 return result.toString(); 79 } 80 81 86 public int getJMSMajorVersion() { 87 return 1; 88 } 89 90 95 public int getJMSMinorVersion() { 96 return 1; 97 } 98 99 104 public String getJMSProviderName() { 105 return Version.TITLE; 106 } 107 108 113 public String getProviderVersion() { 114 return Version.VERSION; 115 } 116 117 122 public int getProviderMajorVersion() { 123 return Version.MAJOR_VERSION; 124 } 125 126 131 public int getProviderMinorVersion() { 132 return Version.MINOR_VERSION; 133 } 134 135 140 public Enumeration getJMSXPropertyNames() { 141 return PROPERTY_NAMES.elements(); 142 } 143 144 } 145 | Popular Tags |