09.12.2012 Views

Advanced Queuing - Oracle

Advanced Queuing - Oracle

Advanced Queuing - Oracle

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Enqueue Features<br />

feature applied in the context of the BooksOnLine scenario, refer to "Elements of<br />

<strong>Advanced</strong> <strong>Queuing</strong>" on page 1-21.<br />

Priority and Ordering of Messages in Enqueuing<br />

Message Grouping<br />

Propagation<br />

It is possible to specify the priority of the enqueued message. An enqueued message<br />

can also have its exact position in the queue specified. This means that users have<br />

three options to specify the order in which messages are consumed: (a) a sort order<br />

specifies which properties are used to order all message in a queue; (b) a priority<br />

can be assigned to each message; (c) a sequence deviation allows you to position a<br />

message in relation to other messages. Further, if several consumers act on the same<br />

queue, a consumer will get the first message that is available for immediate<br />

consumption. A message that is in the process of being consumed by another<br />

consumer will be skipped.<br />

To see this feature applied in the context of the BooksOnLine scenario, refer to<br />

"Priority and Ordering of Messages" on page 8-38.<br />

Messages belonging to one queue can be grouped to form a set that can only be<br />

consumed by one user at a time. This requires that the queue be created in a queue<br />

table that is enabled for message grouping. All messages belonging to a group have<br />

to be created in the same transaction and all messages created in one transaction<br />

belong to the same group. This feature allows users to segment complex messages<br />

into simple messages; for example, messages directed to a queue containing<br />

invoices can be constructed as a group of messages starting with the header<br />

message, followed by messages representing details, followed by the trailer<br />

message.<br />

To see this feature applied in the context of the BooksOnLine scenario, refer to<br />

"Message Grouping" on page 8-51.<br />

This feature enables applications to communicate with each other without having to<br />

be connected to the same database or the same queue. Messages can be propagated<br />

from one <strong>Oracle</strong> AQ to another, irrespective of whether the queues are local or<br />

remote. Propagation is done using database links and <strong>Oracle</strong> Net Services.<br />

To see this feature applied in the context of the BooksOnLine scenario, refer to<br />

"Propagation" on page 8-107.<br />

1-16 <strong>Oracle</strong>9i Application Developer’s Guide - <strong>Advanced</strong> <strong>Queuing</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!