KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfox > jms > JMSTopic


1 /* JFox, the OpenSource J2EE Application Server
2  *
3  * Distributable under GNU LGPL license by gun.org
4  * more details please visit http://www.huihoo.org/jfox
5  */

6
7 package org.jfox.jms;
8
9 import javax.jms.JMSException JavaDoc;
10 import javax.jms.Topic JavaDoc;
11
12 /**
13  * @author <a HREF="mailto:young_yy@hotmail.com">Young Yang</a>
14  */

15
16 public class JMSTopic extends JMSDestination implements Topic JavaDoc {
17
18     public JMSTopic(String JavaDoc name) {
19         super(name);
20     }
21
22     public String JavaDoc getTopicName() throws JMSException JavaDoc {
23         return getName();
24     }
25
26     protected boolean isTopic() {
27         return true;
28     }
29
30     public static void main(String JavaDoc[] args) {
31
32     }
33 }
34
Popular Tags