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.

Recipient<br />

Elements of <strong>Advanced</strong> <strong>Queuing</strong><br />

The name of the agent may be the name of the application or a name assigned<br />

<br />

by the application. A queue may itself be an agent—enqueuing or dequeuing<br />

from another queue.<br />

The address field is a character field of up to 1024 bytes that is interpreted in the<br />

<br />

context of the protocol. For instance, the default value for the protocol is 0,<br />

signifying a database link addressing. In this case, the address for this protocol<br />

is of the form<br />

queue_name@dblink<br />

where queue_name is of the form [schema.]queue and dblink may either<br />

be a fully qualified database link name or the database link name without the<br />

domain name.<br />

The recipient of a message may be specified by its name only, in which case the<br />

recipient must dequeue the message from the queue in which the message was<br />

enqueued. The recipient may be specified by name and an address with a protocol<br />

value of 0. The address should be the name of another queue in the same database<br />

or another <strong>Oracle</strong> database (identified by the database link) in which case the<br />

message is propagated to the specified queue and can be dequeued by a consumer<br />

with the specified name. If the recipient's name is NULL, the message is propagated<br />

to the specified queue in the address and can be dequeued by the subscribers of the<br />

queue specified in the address. If the protocol field is nonzero, the name and<br />

address are not interpreted by the system and the message can be dequeued by a<br />

special consumer (refer to "Third-Party Support" on page 1-21).<br />

Recipient and Subscription Lists<br />

Multiple consumers can consume a single message:<br />

The enqueuer can explicitly specify the consumers who may retrieve the<br />

<br />

message as recipients of the message. A recipient is an agent identified by a<br />

name, address, and protocol.<br />

A queue administrator can specify a default list of recipients who can<br />

<br />

retrieve messages from a queue. The recipients specified in the default list<br />

are known as subscribers. If a message is enqueued without specifying the<br />

recipients, the message is sent to all the subscribers.<br />

Different queues can have different subscribers, and the same recipient can be a<br />

subscriber to more than one queue. Further, specific messages in a queue can be<br />

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

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

Saved successfully!

Ooh no, something went wrong!