KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > scalagent > kjoram > ConnectionMetaData


1 /*
2  * JORAM: Java(TM) Open Reliable Asynchronous Messaging
3  * Copyright (C) 2001 - ScalAgent Distributed Technologies
4  * Copyright (C) 1996 - Dyade
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA.
20  *
21  * Initial developer(s): Frederic Maistre (INRIA)
22  * Contributor(s): Nicolas Tachker (ScalAgent)
23  */

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 JavaDoc jmsProviderName = "kJoram";
36   private static String JavaDoc jmsVersion = "1.1";
37   private static int providerMajorVersion = 4;
38   private static int providerMinorVersion = 0;
39   private static String JavaDoc 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   /**
50    * API method.
51    *
52    * @exception JMSException Actually never thrown.
53    */

54   public int getJMSMajorVersion() throws JMSException
55   {
56     return jmsMajorVersion;
57   }
58
59   /**
60    * API method.
61    *
62    * @exception JMSException Actually never thrown.
63    */

64   public int getJMSMinorVersion() throws JMSException
65   {
66     return jmsMinorVersion;
67   }
68
69   /**
70    * API method.
71    *
72    * @exception JMSException Actually never thrown.
73    */

74   public String JavaDoc getJMSProviderName() throws JMSException
75   {
76     return jmsProviderName;
77   }
78
79   /**
80    * API method.
81    *
82    * @exception JMSException Actually never thrown.
83    */

84   public String JavaDoc getJMSVersion() throws JMSException
85   {
86     return jmsVersion;
87   }
88
89   /**
90    * API method.
91    *
92    * @exception JMSException Actually never thrown.
93    */

94   public Enumeration getJMSXPropertyNames() throws JMSException
95   {
96     return jmsxProperties.elements();
97   }
98
99   /**
100    * API method.
101    *
102    * @exception JMSException Actually never thrown.
103    */

104   public int getProviderMajorVersion() throws JMSException
105   {
106     return providerMajorVersion;
107   }
108
109   /**
110    * API method.
111    *
112    * @exception JMSException Actually never thrown.
113    */

114   public int getProviderMinorVersion() throws JMSException
115   {
116     return providerMinorVersion;
117   }
118
119   /**
120    * API method.
121    *
122    * @exception JMSException Actually never thrown.
123    */

124   public String JavaDoc getProviderVersion() throws JMSException
125   {
126     return providerVersion;
127   }
128 }
129
130
131
Popular Tags