1 22 package org.jboss.mq; 23 24 import javax.jms.Destination ; 25 import javax.jms.JMSException ; 26 import javax.jms.Message ; 27 import javax.jms.Queue ; 28 import javax.jms.QueueSender ; 29 30 43 public class SpyQueueSender extends SpyMessageProducer implements QueueSender 44 { 45 51 SpyQueueSender(SpySession session, Queue queue) 52 { 53 super(session, queue); 54 } 55 56 public Queue getQueue() throws JMSException 57 { 58 return (Queue ) getDestination(); 59 } 60 61 public void send(Queue queue, Message message) throws JMSException 62 { 63 send((Destination ) queue, message); 64 } 65 66 public void send(Queue queue, Message message, int deliveryMode, int priority, long timeToLive) throws JMSException 67 { 68 send((Destination ) queue, message, deliveryMode, priority, timeToLive); 69 } 70 } | Popular Tags |