01: package com.mockrunner.mock.jms;
02:
03: import javax.jms.JMSException;
04: import javax.jms.Message;
05: import javax.jms.Queue;
06: import javax.jms.QueueSender;
07:
08: /**
09: * Mock implementation of JMS <code>QueueSender</code>.
10: */
11: public class MockQueueSender extends MockMessageProducer implements
12: QueueSender {
13: public MockQueueSender(MockConnection connection,
14: MockSession session, MockQueue queue) {
15: super (connection, session, queue);
16: }
17:
18: public Queue getQueue() throws JMSException {
19: return (Queue) getDestination();
20: }
21:
22: public void send(Message message) throws JMSException {
23: super .send(message);
24: }
25:
26: public void send(Message message, int deliveryMode, int priority,
27: long timeToLive) throws JMSException {
28: super .send(message, deliveryMode, priority, timeToLive);
29: }
30:
31: public void send(Queue queue, Message message) throws JMSException {
32: super .send(queue, message);
33: }
34:
35: public void send(Queue queue, Message message, int deliveryMode,
36: int priority, long timeToLive) throws JMSException {
37: super.send(queue, message, deliveryMode, priority, timeToLive);
38: }
39: }
|