1 7 package org.jboss.jms.serverless; 8 9 import org.jboss.logging.Logger; 10 import javax.jms.Queue ; 11 import javax.jms.QueueReceiver ; 12 import javax.jms.JMSException ; 13 import javax.jms.Destination ; 14 15 21 class QueueReceiverImpl extends MessageConsumerImpl implements QueueReceiver { 22 23 private static final Logger log = Logger.getLogger(TopicSubscriberImpl.class); 24 25 private String id; 26 27 31 QueueReceiverImpl(SessionImpl session, String id, Queue queue) { 32 33 super(session, queue); 34 this.id = id; 35 } 36 37 public String getID() { 38 return id; 39 } 40 41 45 public void close() throws JMSException { 46 setMessageListener(null); 47 session.removeConsumer(this); 48 } 49 50 54 public Queue getQueue() throws JMSException { 55 return (Queue )getDestination(); 56 } 57 58 } 59 | Popular Tags |