38.3. Methods

The QueueReceiver interface inherits the methods of the interface javax.jms.MessageConsumer. The following method is defined in the interface javax.jms.QueueReceiver.

getQueue

public Queue getQueue()

Gets the Queue associated with this queue receiver.

RETURNS:

this receiver's Queue

THROWS:

JMSException if the JMS provider fails to get the queue for this queue receiver due to some internal error

Get Java™ Message Service API Tutorial and Reference: Messaging for the J2EE™ Platform now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.