1 28 29 package com.caucho.jms.session; 30 31 import com.caucho.util.L10N; 32 33 import javax.jms.ConnectionMetaData ; 34 import javax.jms.JMSException ; 35 import java.util.Enumeration ; 36 import java.util.Vector ; 37 38 41 public class ConnectionMetaDataImpl implements ConnectionMetaData { 42 static final L10N L = new L10N(ConnectionMetaDataImpl.class); 43 44 private Vector <String > _propertyNames = new Vector <String >(); 45 46 ConnectionMetaDataImpl() 47 { 48 _propertyNames.add("JMSXGroupID"); 49 _propertyNames.add("JMSXGroupSeq"); 50 } 51 52 55 public int getJMSMajorVersion() 56 throws JMSException 57 { 58 return 1; 59 } 60 61 64 public int getJMSMinorVersion() 65 throws JMSException 66 { 67 return 1; 68 } 69 70 73 public String getJMSProviderName() 74 throws JMSException 75 { 76 return "Caucho Technology"; 77 } 78 79 82 public String getJMSVersion() 83 throws JMSException 84 { 85 return "1.1"; 86 } 87 88 91 public Enumeration getJMSXPropertyNames() 92 { 93 return _propertyNames.elements(); 94 } 95 96 99 public int getProviderMajorVersion() 100 throws JMSException 101 { 102 return 3; 103 } 104 105 108 public int getProviderMinorVersion() 109 throws JMSException 110 { 111 return 0; 112 } 113 114 117 public String getProviderVersion() 118 throws JMSException 119 { 120 return com.caucho.Version.VERSION; 121 } 122 } 123 124 | Popular Tags |