javax.jms
Interface QueueReceiver
- public abstract interface QueueReceiver
- extends MessageConsumer
A client uses a QueueReceiver for receiving messages that have been
delivered to a queue.
Although is possible to have two Sessions with a QueueReceiver for
the same queue, JMS does not define how messages are distributed between
the QueueReceivers.
- Version:
- 1.0 - 9 March 1998
- Author:
- Mark Hapner, Rich Burridge
- See Also:
MessageConsumer
Method Summary |
Queue |
getQueue()
Get the queue associated with this queue receiver. |
getQueue
public Queue getQueue()
throws JMSException
- Get the queue associated with this queue receiver.
- Returns:
- the queue
- Throws:
- JMSException - if JMS fails to get queue for
this queue receiver
due to some internal error.