1 45 package org.exolab.jms.client; 46 47 48 import javax.jms.JMSException ; 49 import javax.jms.Message ; 50 import javax.jms.QueueSender ; 51 import javax.jms.Queue ; 52 53 54 61 class JmsQueueSender 62 extends JmsMessageProducer 63 implements QueueSender { 64 65 71 public JmsQueueSender(JmsSession session, JmsQueue queue) { 72 super(session, queue); 73 } 74 75 81 public Queue getQueue() { 82 return (Queue ) getDestination(); 83 } 84 85 93 public void send(Queue queue, Message message) throws JMSException { 94 send(queue, message, getDeliveryMode(), getPriority(), 95 getTimeToLive()); 96 } 97 98 109 public void send(Queue queue, Message message, int deliveryMode, 110 int priority, long timeToLive) throws JMSException { 111 super.send(queue, message, deliveryMode, priority, timeToLive); 112 } 113 114 } 115 | Popular Tags |