1 28 29 package com.caucho.jms.session; 30 31 import javax.jms.JMSException ; 32 import javax.jms.Queue ; 33 import javax.jms.QueueReceiver ; 34 import javax.jms.QueueSender ; 35 import javax.jms.QueueSession ; 36 37 40 public class QueueSessionImpl extends SessionImpl implements QueueSession { 41 44 public QueueSessionImpl(ConnectionImpl connection, 45 boolean isTransacted, int ackMode) 46 throws JMSException 47 { 48 super(connection, isTransacted, ackMode); 49 } 50 51 56 public QueueReceiver createReceiver(Queue queue) 57 throws JMSException 58 { 59 checkOpen(); 60 61 return createReceiver(queue, null); 62 } 63 64 70 public QueueReceiver createReceiver(Queue queue, String messageSelector) 71 throws JMSException 72 { 73 return (QueueReceiver ) createConsumer(queue, messageSelector); 74 } 75 76 81 public QueueSender createSender(Queue queue) 82 throws JMSException 83 { 84 checkOpen(); 85 86 return (QueueSender ) createProducer(queue); 87 } 88 } 89 | Popular Tags |