1 24 package org.objectweb.joram.client.jms; 25 26 import javax.jms.IllegalStateException ; 27 import javax.jms.JMSException ; 28 29 30 33 public class TopicSubscriber extends MessageConsumer 34 implements javax.jms.TopicSubscriber 35 { 36 49 TopicSubscriber(Session sess, Destination topic, String name, String selector, 50 boolean noLocal) throws JMSException { 51 super(sess, topic, selector, name, noLocal); 52 } 53 54 55 public String toString() 56 { 57 return "TopicSub:" + targetName; 58 } 59 60 61 66 public boolean getNoLocal() throws JMSException 67 { 68 checkClosed(); 69 return noLocal; 70 } 71 72 77 public javax.jms.Topic getTopic() throws JMSException 78 { 79 checkClosed(); 80 return (javax.jms.Topic ) dest; 81 } 82 } 83 | Popular Tags |