09.12.2012 Views

Advanced Queuing - Oracle

Advanced Queuing - Oracle

Advanced Queuing - Oracle

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Modeling Queue Entities<br />

Figure 7–6 Dequeuing of Specified Messages by Specified Recipients<br />

Queue Table<br />

Subscriber list: s1, s2, s3<br />

Recipient list: r1, r2<br />

Queue Subscribers<br />

Msg 1<br />

Msg 2<br />

Msg 3<br />

Msg 4<br />

Msg 5<br />

Msg 6<br />

Msg 7<br />

We earlier referred to subscribers as implicit recipients in that they are able to<br />

dequeue all the messages placed into a specific queue. This is like subscribing to a<br />

magazine and thereby implicitly gaining access to all its articles. The category of<br />

consumers that we have referred to as recipients may also be viewed as explicit<br />

recipients in that they are designated targets of particular messages.<br />

Figure 7–7 shows how <strong>Oracle</strong> AQ can adjust dynamically to accommodate both<br />

kinds of consumers. In this scenario Application B and Application C are implicit<br />

recipients (subscribers). But messages can also be explicitly directed toward specific<br />

consumers (recipients) who may or may not be subscribers to the queue. The list of<br />

such recipients is specified in the enqueue call for that message and overrides the<br />

7-10 <strong>Oracle</strong>9i Application Developer’s Guide - <strong>Advanced</strong> <strong>Queuing</strong><br />

R1<br />

R2<br />

S1<br />

S2<br />

S3

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

Saved successfully!

Ooh no, something went wrong!