javax.jms
Interface QueueReceiver
- public interface QueueReceiver
- extends MessageConsumer
A client uses a QueueReceiver for receiving messages that have been
delivered to a queue.
Although it is possible to have multiple QueueReceivers for the same queue,
JMS does not define how messages are distributed between the QueueReceivers.
- See Also:
QueueSession.createReceiver(Queue, String)
,
QueueSession.createReceiver(Queue)
,
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.