Oracle8i Application Developer's Guide - Advanced Queuing
Release 2 (8.1.6)

Part Number A76938-01

Library

Product

Contents

Index

Go to previous page Go to beginning of chapter Go to next page

Operational Interface: Basic Operations, 11 of 16


Dequeue a Message

Figure 11-10 Use Case Diagram: Dequeue a Message



To refer to the table of all basic operations having to do with the Operational Interface see:

 

Purpose

Dequeues a message from the specified queue.

Usage Notes

Search criteria and dequeue order for messages:

Navigating through a queue

The default NAVIGATION parameter during dequeue is NEXT MESSAGE. This means that subsequent dequeues will retrieve the messages from the queue based on the snapshot obtained in the first dequeue. In particular, a message that is enqueued after the first dequeue command will be processed only after processing all the remaining messages in the queue. This is usually sufficient when all the messages have already been enqueued into the queue, or when the queue does not have a priority-based ordering. However, applications must use the FIRST MESSAGE navigation option when the first message in the queue needs to be processed by every dequeue command. This usually becomes necessary when a higher priority message arrives in the queue while messages already-enqueued are being processed.


Note:

It may also be more efficient to use the FIRST MESSAGE navigation option when there are messages being concurrently enqueued. If the FIRST MESSAGE option is not specified, AQ will have to continually generate the snapshot as of the first dequeue command, leading to poor performance. If the FIRST MESSAGE option is specified, AQ will use a new snapshot for every dequeue command.  


Dequeue by Message Grouping

Syntax

See Chapter 3, "AQ Programmatic Environments" for a list of available functions in each programmatic environment. Use the following syntax references for each programmatic environment:

Examples

See Chapter 3, "AQ Programmatic Environments" for a list of available functions in each programmatic environment. Examples in the following programmatic environments are provided:


Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2000, Oracle Corporation.

All Rights Reserved.

Library

Product

Contents

Index