41.3. Methods
The QueueSession interface inherits the fields and the methods of the interface javax.jms.Session. The following methods are defined in the interface javax.jms.QueueSession.
createBrowser(Queue)
public QueueBrowser createBrowser(Queue queue)
Creates a QueueBrowser object to peek at the messages on the specified queue.
PARAMETERS:
queue the Queue to access THROWS:
JMSException if the session fails to create a browser due to some internal error InvalidDestinationException if an invalid queue is specified
createBrowser(Queue, String)
public QueueBrowser createBrowser(Queue queue, java.lang.String messageSelector)
Creates a QueueBrowser object to peek at the messages on the specified queue using a message selector.
PARAMETERS:
queue ...
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.