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.

Registering for Notification<br />

See Also:<br />

Purpose<br />

To register a callback for message notification.<br />

Usage Notes<br />

Table 11–1 for a list of operational interface basic operations<br />

"Registering for Notification [Specifying Subscription<br />

<br />

Name—Single-Consumer Queue]" on page 11-58<br />

"Registering for Notification [Specifying Subscription<br />

<br />

Name—Multiconsumer Queue]" on page 11-59<br />

This call is invoked for registration to a subscription which identifies the<br />

<br />

subscription name of interest and the associated callback to be invoked. Interest<br />

in several subscriptions can be registered at one time.<br />

This interface is only valid for the asynchronous mode of message delivery. In<br />

<br />

this mode, a subscriber issues a registration call which specifies a callback.<br />

When messages are received that match the subscription criteria, the callback is<br />

invoked. The callback may then issue an explicit message_receive (dequeue)<br />

to retrieve the message.<br />

The user must specify a subscription handle at registration time with the<br />

<br />

namespace attribute set to LNOCI_SUBSCR_NAMESPACE_AQ.<br />

The subscription name is the string ’schema.queue’ if the registration is for a<br />

<br />

single-consumer queue and ’schema.queue:consumer_name’ if the<br />

registration is for a multiconsumer queues.<br />

Related Functions: LNOCIAQListen(), LNOCISubscriptionDisable(),<br />

<br />

LNOCISubscriptionEnable(), LNOCISubscriptionUnRegister()<br />

For more information about the OCI operation Register for<br />

Notification see:<br />

<strong>Oracle</strong> Call Interface Programmer’s Guide<br />

Syntax<br />

See Chapter 3, "AQ Programmatic Environments" for a list of available functions in<br />

each programmatic environment. Use the following syntax references for each<br />

programmatic environment:<br />

11-56 <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!