1 24 package org.objectweb.joram.client.jms; 25 26 import javax.jms.JMSException ; 27 import javax.jms.IllegalStateException ; 28 29 30 33 public class QueueSender extends MessageProducer 34 implements javax.jms.QueueSender 35 { 36 45 QueueSender(QueueSession sess, Destination queue) throws JMSException { 46 super(sess, queue); 47 } 48 49 50 public String toString() 51 { 52 return "QueueSend:" + sess.getId(); 53 } 54 55 60 public javax.jms.Queue getQueue() throws JMSException 61 { 62 if (closed) 63 throw new IllegalStateException ("Forbidden call on a closed sender."); 64 65 return (javax.jms.Queue ) super.dest; 66 } 67 68 79 public void send(javax.jms.Queue queue, javax.jms.Message message) 80 throws JMSException 81 { 82 super.send(queue, message); 83 } 84 85 96 public void send(javax.jms.Queue queue, javax.jms.Message message, 97 int deliveryMode, int priority, 98 long timeToLive) throws JMSException 99 { 100 super.send(queue, message, deliveryMode, priority, timeToLive); 101 } 102 } 103 | Popular Tags |