createBrowser

 

public QueueBrowser createBrowser(Queue queue, String messageSelector) 
              throws JMSException;

Creates a QueueBrowser object to peek at the messages on the specified queue using a message selector.

Parameters

  • queue - the queue to access

  • messageSelector - only messages with properties matching the message selector expression are delivered. A value of null or an empty string indicates that there is no message selector for the message consumer.

Returns

  • QueueBrowser - a newly create QueueBrowser

Exceptions

  • JMSException - with one of the following reasons:

    • MQJMS_E_SESSION_CLOSED

    • MQJMS_EXCEPTION_INVALID_DESTINATION

    • MQJMS_E_NON_LOCAL_RXQ


uj30080_