1 25 package org.objectweb.joram.client.jms; 26 27 import java.util.*; 28 29 import javax.jms.JMSException ; 30 31 34 public class XAQueueSession extends XASession 35 implements javax.jms.XAQueueSession 36 { 37 45 XAQueueSession(XAQueueConnection cnx, 46 QueueSession qs, 47 XAResourceMngr rm) throws JMSException 48 { 49 super(cnx, qs, rm); 50 } 51 52 53 54 public String toString() 55 { 56 return "XAQueueSess:" + sess.getId(); 57 } 58 59 60 61 public javax.jms.QueueSession getQueueSession() throws JMSException 62 { 63 return (QueueSession) sess; 64 } 65 66 69 public javax.jms.QueueSender createSender(Queue queue) 70 throws JMSException 71 { 72 return ((QueueSession) sess).createSender(queue); 73 } 74 75 78 public javax.jms.QueueReceiver createReceiver(Queue queue, String selector) 79 throws JMSException 80 { 81 return ((QueueSession) sess).createReceiver(queue, selector); 82 } 83 84 87 public javax.jms.QueueReceiver createReceiver(Queue queue) 88 throws JMSException 89 { 90 return ((QueueSession) sess).createReceiver(queue); 91 } 92 } 93 | Popular Tags |