KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > jms > serverless > TopicSubscriberImpl


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.jms.serverless;
8
9 import org.jboss.logging.Logger;
10 import javax.jms.Topic JavaDoc;
11 import javax.jms.TopicSubscriber JavaDoc;
12 import javax.jms.JMSException JavaDoc;
13 import javax.jms.MessageListener JavaDoc;
14
15 /**
16  *
17  * @author Ovidiu Feodorov <ovidiu@jboss.org>
18  * @version $Revision: 1.1 $ $Date: 2004/04/15 22:54:19 $
19  *
20  **/

21 class TopicSubscriberImpl extends MessageConsumerImpl implements TopicSubscriber JavaDoc {
22
23     private static final Logger log = Logger.getLogger(TopicSubscriberImpl.class);
24
25     TopicSubscriberImpl(SessionImpl session, Topic JavaDoc topic) {
26
27         super(session, topic);
28     }
29
30     //
31
// MessageConsumer INTERFACE METHODS
32
//
33

34     public void close() throws JMSException JavaDoc {
35         throw new NotImplementedException();
36     }
37
38
39     //
40
// TopicSubscriber INTERFACE IMPLEMENTATION
41
//
42

43     public Topic JavaDoc getTopic() throws JMSException JavaDoc {
44         return (Topic JavaDoc)getDestination();
45     }
46
47     public boolean getNoLocal() throws JMSException JavaDoc {
48         throw new NotImplementedException();
49     }
50 }
51
Popular Tags