JMS Examples: Queue Browser
11.1.3. Browser The browser example shows you how to use a JMS QueueBrowser with HornetQ. Queues are a standard part of JMS, please consult the JMS 1.1 specification for full details. A QueueBrowser is used to look at messages on the queue without removing them. It can scan the entire content of a queue or only messages matching a message selector.