1 25 package org.objectweb.joram.client.jms; 26 27 import javax.jms.JMSException ; 28 import javax.jms.TopicSubscriber ; 29 30 33 public class XATopicSession extends XASession 34 implements javax.jms.XATopicSession 35 { 36 44 XATopicSession(XATopicConnection cnx, 45 TopicSession ts, 46 XAResourceMngr rm) throws JMSException 47 { 48 super(cnx, ts, rm); 49 } 50 51 52 53 public String toString() 54 { 55 return "XATopicSess:" + sess.getId(); 56 } 57 58 59 60 public javax.jms.TopicSession getTopicSession() throws JMSException 61 { 62 return (javax.jms.TopicSession ) sess; 63 } 64 65 68 public TopicSubscriber createSubscriber(javax.jms.Topic topic, 69 String selector, 70 boolean noLocal) 71 throws JMSException 72 { 73 return ((TopicSession) sess).createSubscriber(topic, selector, noLocal); 74 } 75 76 79 public TopicSubscriber createSubscriber(javax.jms.Topic topic) 80 throws JMSException 81 { 82 return ((TopicSession) sess).createSubscriber(topic); 83 } 84 } 85 | Popular Tags |