Mqget With Browse Option Does Not Work: Mqget Returned With Reason Code 2037 (Doc ID 436374.1)

Last updated on AUGUST 23, 2010

Applies to:

Oracle Database Gateway for WebSphere MQ - Version: 10.2.0.3 to 10.2.0.3 - Release: 10.2 to 10.2
Information in this document applies to any platform.
Checked for relevance 23-Aug-2010

Goal

The provided samples in $ORACLE_HOME/pg4mq/sample do not contain a sample on how to browse messages from a queue. By default a dequeue of a message means the message is also removed from the queue. In browse mode the message remains on the queue. This can be a requirement when having multiple subscribers for a queue.

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms