Oracle8i Application Developer's Guide - Advanced Queuing Release 2 (8.1.6) Part Number A76938-01 |
|
Administrative Interface, 12 of 25
Disables enqueuing and/or dequeuing on the specified queue.
By default, this call disables both ENQUEUE
s or DEQUEUE
s. A queue cannot be stopped if there are outstanding transactions against the queue. This operation takes effect when the call completes and does not have any transactional characteristics.
See Chapter 3, "AQ Programmatic Environments" for a list of available functions in each programmatic environment. Use the following syntax references for each programmatic environment:
See Chapter 3, "AQ Programmatic Environments" for a list of available functions in each programmatic environment. Examples are provided in the following programmatic environments:
/* Stop the queue: */ EXECUTE dbms_aqadm.stop_queue ( queue_name => 'aq.Msg_queue');
/* Stop a queue - wait for oustanding transactions */ public static void example(AQSession aq_sess) throws AQException { AQQueue queue; /* Get the queue object */ queue = aq_sess.getQueue("AQ", "Msg_queue"); /* Enable enqueue and dequeue */ queue.stop(true); }
|
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|