01: package org.mockejb.jms;
02:
03: import javax.jms.JMSException;
04: import javax.jms.Queue;
05: import javax.jms.QueueReceiver;
06:
07: /**
08: * @author Dimitar Gospodinov
09: */
10: public class QueueReceiverImpl extends MockConsumer implements
11: QueueReceiver {
12:
13: /**
14: * @param queue
15: */
16: public QueueReceiverImpl(MockSession sess, MockQueue queue) {
17: super (sess, queue);
18: }
19:
20: /**
21: * @see javax.jms.QueueReceiver#getQueue()
22: */
23: public Queue getQueue() throws JMSException {
24: return (Queue) getDestination();
25: }
26:
27: }
|