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.

Sender Identification<br />

Enqueue Features<br />

Applications can mark the messages they send with a custom identification. <strong>Oracle</strong><br />

also automatically identifies the queue from which a message was dequeued. This<br />

allows applications to track the pathway of a propagated message or a string<br />

messages within the same database.<br />

Time Specification and Scheduling<br />

Rule-Based Subscribers<br />

Asynchronous Notification<br />

Delay interval or expiration intervals can be specified for an enqueued message,<br />

thereby providing windows of execution. A message can be marked as available for<br />

processing only after a specified time elapses (a delay time) and has to be consumed<br />

before a specified time limit expires.<br />

A message can be delivered to multiple recipients based on message properties or<br />

message content. Users define a rule-based subscription for a given queue as the<br />

mechanism to specify interest in receiving messages of interest. Rules can be<br />

specified based on message properties and message data (for object and raw<br />

payloads). Subscriber rules are then used to evaluate recipients for message<br />

delivery.<br />

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

"Rule-Based Subscription" on page 8-86.<br />

The asynchronous notification feature allows clients to receive notification of a<br />

message of interest. The client can use it to monitor multiple subscriptions. The<br />

client does not have to be connected to the database to receive notifications<br />

regarding its subscriptions.<br />

Clients can use the OCI function, LNOCISubcriptionRegister, or the PL/SQL<br />

procedure DBMS_AQ.REGISTER to register interest in messages in a queue. Refer to<br />

"Registering for Notification" in Chapter 11, "Operational Interface: Basic<br />

Operations" for more information.<br />

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

"Asynchronous Notifications" on page 8-97.<br />

Introduction to <strong>Oracle</strong> <strong>Advanced</strong> <strong>Queuing</strong> 1-17

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

Saved successfully!

Ooh no, something went wrong!