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 QueueReceiver extends MessageConsumer 34 implements javax.jms.QueueReceiver  35 { 36 46 QueueReceiver(QueueSession sess, Destination queue, 47 String selector) throws JMSException { 48 super(sess, queue, selector); 49 } 50 51 52 public String toString() 53 { 54 return "QueueRec:" + sess.getId(); 55 } 56 57 62 public javax.jms.Queue getQueue() throws JMSException  63 { 64 checkClosed(); 65 return (javax.jms.Queue ) dest; 66 } 67 } 68 | Popular Tags |