1 24 package com.scalagent.kjoram; 25 26 import java.util.*; 27 28 import com.scalagent.kjoram.excepts.JMSException; 29 30 31 public class ConnectionMetaData 32 { 33 private static int jmsMajorVersion = 1; 34 private static int jmsMinorVersion = 1; 35 private static String jmsProviderName = "kJoram"; 36 private static String jmsVersion = "1.1"; 37 private static int providerMajorVersion = 4; 38 private static int providerMinorVersion = 0; 39 private static String providerVersion = "4.0"; 40 private static Vector jmsxProperties = new Vector(); 41 42 static 43 { 44 jmsxProperties.addElement("JMSXDeliveryCount"); 45 jmsxProperties.addElement("JMSXGroupID"); 46 jmsxProperties.addElement("JMSXGroupSeq"); 47 } 48 49 54 public int getJMSMajorVersion() throws JMSException 55 { 56 return jmsMajorVersion; 57 } 58 59 64 public int getJMSMinorVersion() throws JMSException 65 { 66 return jmsMinorVersion; 67 } 68 69 74 public String getJMSProviderName() throws JMSException 75 { 76 return jmsProviderName; 77 } 78 79 84 public String getJMSVersion() throws JMSException 85 { 86 return jmsVersion; 87 } 88 89 94 public Enumeration getJMSXPropertyNames() throws JMSException 95 { 96 return jmsxProperties.elements(); 97 } 98 99 104 public int getProviderMajorVersion() throws JMSException 105 { 106 return providerMajorVersion; 107 } 108 109 114 public int getProviderMinorVersion() throws JMSException 115 { 116 return providerMinorVersion; 117 } 118 119 124 public String getProviderVersion() throws JMSException 125 { 126 return providerVersion; 127 } 128 } 129 130 131 | Popular Tags |