1 7 package org.jboss.jms.client; 8 9 import java.util.Enumeration ; 10 11 import javax.jms.ConnectionMetaData ; 12 import javax.jms.JMSException ; 13 14 20 public class JBossConnectionMetaData 21 implements ConnectionMetaData 22 { 23 25 27 28 private ConnectionDelegate connection; 29 30 32 34 39 public JBossConnectionMetaData(ConnectionDelegate connection) 40 throws JMSException 41 { 42 this.connection = connection; 43 } 44 45 47 53 public ConnectionDelegate getConnection() throws JMSException 54 { 55 return connection; 56 } 57 58 60 public int getJMSMajorVersion() throws JMSException 61 { 62 return 1; 63 } 64 65 public int getJMSMinorVersion() throws JMSException 66 { 67 return 1; 68 } 69 70 public String getJMSProviderName() throws JMSException 71 { 72 return "JBoss.org"; 73 } 74 75 public String getJMSVersion() throws JMSException 76 { 77 return getJMSMajorVersion() + "." + getJMSMinorVersion(); 78 } 79 80 public Enumeration getJMSXPropertyNames() throws JMSException 81 { 82 return connection.getJMSXPropertyNames(); 83 } 84 85 public int getProviderMajorVersion() throws JMSException 86 { 87 return 4; 88 } 89 90 public int getProviderMinorVersion() throws JMSException 91 { 92 return 0; 93 } 94 95 public String getProviderVersion() throws JMSException 96 { 97 return getProviderMajorVersion() + "." + getProviderMinorVersion(); 98 } 99 100 102 104 106 } 108 | Popular Tags |