Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/mom4j/jms/ConnectionMetaDataImpl.java


1   package org.mom4j.jms;
2   
3   import java.util.Vector;
4   
5   
6   public class ConnectionMetaDataImpl implements javax.jms.ConnectionMetaData {
7       
8       private Vector jmxNames;
9       
10  
11      /** Creates new ConnectionMetaDataImpl */
12      public ConnectionMetaDataImpl() {
13          this.jmxNames = new Vector();
14      }
15      
16  
17      public int getJMSMajorVersion() throws javax.jms.JMSException {
18          return 1;
19      }
20      
21      
22      public int getJMSMinorVersion() throws javax.jms.JMSException {
23          return 1;
24      }
25      
26      
27      public java.lang.String getJMSProviderName() throws javax.jms.JMSException {
28          return "mom4j.org";
29      }
30      
31      
32      public java.lang.String getJMSVersion() throws javax.jms.JMSException {
33          return "1.0.2";
34      }
35      
36      
37      public java.util.Enumeration getJMSXPropertyNames() throws javax.jms.JMSException {
38          return this.jmxNames.elements();
39      }
40      
41      
42      public int getProviderMajorVersion() throws javax.jms.JMSException {
43          return 1;
44      }
45      
46      
47      public int getProviderMinorVersion() throws javax.jms.JMSException {
48          return 1;
49      }
50      
51      
52      public java.lang.String getProviderVersion() throws javax.jms.JMSException {
53          return "0.1";
54      }
55      
56  }