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.

Dequeue Using the AQ XML Servlet<br />

Asynchronous Notifications<br />

You can perform dequeue requests over the Internet using SOAP. See Chapter 17,<br />

"Internet Access to <strong>Advanced</strong> <strong>Queuing</strong>" for more information on receiving AQ<br />

messages using SOAP.<br />

In the BooksOnline scenario, assume that the East shipping application receives AQ<br />

messages with a correlation identifier 'RUSH' over the Internet. The dequeue<br />

request will have the following format:<br />

<br />

<br />

<br />

<br />

<br />

ES_ES_bookedorders_que<br />

East_Shipping<br />

0<br />

<br />

RUSH<br />

<br />

<br />

<br />

<br />

<br />

<br />

Asynchronous Notifications<br />

This feature allows clients to receive notifications for messages of interest. It<br />

supports multiple mechanisms to receive notifications. Clients can receive<br />

notifications procedurally using PL/SQL, JMS, or OCI callback functions, or clients<br />

can receive notifications through e-mail or HTTP post.<br />

For persistent queues, notifications contain only the message properties, except for<br />

JMS notifications. Clients have to explicitly dequeue to receive the message. In JMS,<br />

the dequeue is done as part of the notifications and hence explicit dequeue is not<br />

required. For nonpersistent queues, the message is delivered as part of the<br />

notification.<br />

Clients can also specify the presentation for notifications as either RAW or XML.<br />

A Sample Application Using AQ 8-97

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

Saved successfully!

Ooh no, something went wrong!