Name

QueueBrowser

Synopsis

A QueueBrowser is used to “peek” at the contents of a message queue without actually removing the messages. A QueueBrowser has an optional message selector that can be used to filter the messages checked for on the queue. QueueBrowsers are created using the createBrowser() methods on QueueSession.

public interface QueueBrowser {
// Public Instance Methods
   public abstract void close() throws JMSException;  
   public abstract java.util.Enumeration getEnumeration(
        ) throws JMSException;  
   public abstract String getMessageSelector(
        ) throws JMSException;  
   public abstract Queue getQueue() throws JMSException;  
}

Returned By

QueueSession.createBrowser()

Get Java Enterprise in a Nutshell, Second Edition 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.