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.

Creating a Nonpersistent Queue<br />

message from a nonpersistent queue is by using the OCI notification mechanism<br />

(see Registering for Notification on page 11-55).<br />

You cannot invoke the listen call on a nonpersistent queue (see "Listening to One<br />

or More Single-Consumer Queues" on page 11-23).<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 />

PL/SQL (DBMS_AQADM Package): <strong>Oracle</strong>9i Supplied PL/SQL Packages and<br />

<br />

Types Reference, DBMS_AQADM.CREATE_NP_QUEUE procedure<br />

Visual Basic (OO4O): There is no applicable syntax reference for this use case<br />

Java (JDBC): There is no applicable syntax reference for this use case<br />

Examples<br />

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

each programmatic environment. Examples are provided in the following<br />

programmatic environments.<br />

PL/SQL (DBMS_AQADM Package): Dropping a Queue Table on page 9-18<br />

VB (OO4O): Example not provided.<br />

Java (JDBC): Dropping a Queue Table on page 9-19<br />

PL/SQL (DBMS_AQADM): Creating a Nonpersistent Queue<br />

/* Create a nonpersistent single-consumer queue (Note: this is not preceded by<br />

creation of a queue table) */<br />

EXECUTE dbms_aqadm.create_np_queue(<br />

Queue_name => ’Singleconsumersmsg_npque’,<br />

Multiple_consumers => FALSE);<br />

/* Create a nonpersistent multi-consumer queue (Note: this is not preceded by<br />

creation of a queue table) */<br />

EXECUTE dbms_aqadm.create_np_queue(<br />

Queue_name => ’Multiconsumersmsg_npque’,<br />

Multiple_consumers => TRUE);<br />

Java (JDBC): Creating a Nonpersistent Queue<br />

Feature not available through Java API.<br />

Administrative Interface 9-27

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

Saved successfully!

Ooh no, something went wrong!