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.

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

<br />

<br />

<br />

<br />

Dequeue Request Example—Receiving Messages that Satisfy a Specific<br />

Condition<br />

Using the multiconsumer queue AQUSER.EMP_TOPIC with subscriber APP1 and<br />

condition deptno=60, the receive request has the following format:<br />

<br />

<br />

<br />

<br />

<br />

AQUSER.EMP_TOPIC<br />

APP1<br />

0<br />

<br />

tab.user_data.deptno=60<br />

<br />

<br />

<br />

<br />

<br />

Dequeue Request Example—Receiving Messages and Committing<br />

In the dequeue request examples, if you include AQXmlCommit at the end of the<br />

RECEIVE request, the transaction is committed upon completion of the operation.<br />

In "Dequeue Request Example—Receiving Messages from a Multiconsumer Queue"<br />

on page 17-23, the receive request can include the commit flag as follows:<br />

<br />

<br />

<br />

<br />

<br />

QS.NEW_ORDERS_QUE<br />

0<br />

<br />

<br />

17-24 <strong>Oracle</strong>9i Application Developer’s Guide - <strong>Advanced</strong> <strong>Queuing</strong>

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

Saved successfully!

Ooh no, something went wrong!