Browse and Lock

Performing BrowseAndLock on a group of messages allows an application to ensure that no other application is able to process messages when they are locked. The messages remain locked until that application unlocks them. No other application can unlock the messages. Any messages that arrive on the queue after the BrowseAndLock operation are not locked.

An application can perform either a get or a delete operation on the messages to remove them from the queue. To do this, the application must supply the lockID that is returned with the enumeration of messages.

Specifying the lockID allows applications to work with locked messages without having to unlock them first.

Instead of removing the messages from the queue, it is also possible just to unlock them. This makes them visible once again to all MQe applications. You can achieve this by using the unlockMessage method.
Note: See the MQe Configuration Guide for special considerations with MQ bridge queues.

Terms of use | WebSphere software

(c) Copyright IBM Corporation 2004, 2005. All rights reserved.