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.

Examples<br />

Using Visual Basic (OO4O) to Access AQ<br />

Register to receive message notifications<br />

In addition, OCI clients can receive asynchronous notifications for new messages in<br />

a queue using OCISubscriptionRegister.<br />

See: <strong>Oracle</strong> Call Interface Programmer’s Guide: “OCI and <strong>Advanced</strong><br />

<strong>Queuing</strong>” and “Publish-Subscribe Notification” sections, for syntax<br />

details.<br />

For queues with user-defined payload type, OTT must be used to generate the OCI<br />

mapping for the <strong>Oracle</strong> type. The OCI client is responsible for freeing the memory<br />

of the AQ descriptors and the message payload.<br />

LNOCI Interface<br />

See Appendix A, "<strong>Oracle</strong> <strong>Advanced</strong> <strong>Queuing</strong> by Example" under "Enqueuing and<br />

Dequeuing Of Messages" on page A-11 for OCI <strong>Advanced</strong> <strong>Queuing</strong> interface<br />

examples.<br />

Managing OCI Descriptor Memory<br />

See Appendix A, "<strong>Oracle</strong> <strong>Advanced</strong> <strong>Queuing</strong> by Example" under "AQ and Memory<br />

Usage" on page A-72 for examples illustrating memory management of OCI<br />

descriptors.<br />

Using Visual Basic (OO4O) to Access AQ<br />

Visual Basic (OO4O) supports access to <strong>Oracle</strong> <strong>Advanced</strong> <strong>Queuing</strong> operational<br />

functions using the native AQ interface.<br />

These functions include the following:<br />

Create: connection, RAW message, message with structured data<br />

<br />

Enqueue messages to single consumer queue (point-to-point model)<br />

Publish messages to multiconsumer queue/topic (publish-subscribe model)<br />

Browse messages in a queue<br />

Receive messages from queue/topic<br />

Register to received messages asynchronously<br />

AQ Programmatic Environments 3-5

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

Saved successfully!

Ooh no, something went wrong!