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.

Notifications from the server to the client<br />

The Internet Data Access Presentation (IDAP)<br />

Note: AQ Internet Access is supported only for 8.1-style queues.<br />

8.0-style queues cannot be accessed using IDAP.<br />

Client Requests for Enqueue<br />

Client requests for enqueue—SEND and PUBLISH requests—use the following<br />

methods:<br />

AQXmlSend—to enqueue to a single-consumer queue<br />

AQXmlPublish—to enqueue to multiconsumer queues/topics<br />

AQXmlSend and AQXmlPublish take the arguments and argument attributes<br />

shown in Table 17–1. Required arguments are shown in bold.<br />

Table 17–1 Client Requests for Enqueue—Arguments and Attributes for AQXmlSend and AQXmlPublish<br />

Argument Attribute<br />

producer_options destination—specify the queue/topic to which messages are to be sent. The<br />

destination element has an attribute lookup_type which determines how the<br />

destination element value is interpreted<br />

DATABASE (default)—destination is interpreted as schema.queue_<br />

<br />

name<br />

LDAP—the LDAP server is used to resolve the destination<br />

- visibility<br />

ON_COMMIT—The enqueue is part of the current transaction. The operation is<br />

<br />

complete when the transaction commits. This is the default case.<br />

IMMEDIATE—effects of the enqueue are visible immediately after the request<br />

<br />

is completed. The enqueue is not part of the current transaction. The<br />

operation constitutes a transaction on its own.<br />

- transformation—the PL/SQL transformation to be invoked before the<br />

message is enqueued<br />

message_set—contains<br />

one or more messages.<br />

Each message consists of a message_header and message_payload<br />

message_header message_id—unique identifier of the message, supplied during dequeue<br />

- correlation—correlation identifier of the message<br />

Internet Access to <strong>Advanced</strong> <strong>Queuing</strong> 17-7

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

Saved successfully!

Ooh no, something went wrong!