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.

Unscheduling a Queue Propagation<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): Unscheduling a Propagation on page 9-76<br />

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

Java (JDBC): Unscheduling a Queue propagation on page 9-76<br />

PL/SQL (DBMS_AQADM): Unscheduling a Propagation<br />

Unscheduling Propagation from Queue To Other Queues in the Same Database<br />

/* Unschedule propagation from queue aq.q1def to other queues in the same<br />

database */<br />

EXECUTE DBMS_AQADM.UNSCHEDULE_PROPAGATION(queue_name => ’aq.q1def’);<br />

Unscheduling Propagation from a Queue to other Queues in Another Database<br />

/* Unschedule propagation from queue aq.q1def to other queues in another<br />

database reached by the database link another_db.world */<br />

EXECUTE DBMS_AQADM.UNSCHEDULE_PROPAGATION(<br />

Queue_name => ’aq.q1def’,<br />

Destination => ’another_db.world’);<br />

Java (JDBC): Unscheduling a Queue propagation<br />

/* Unschedule propagation from a queue to other queues in the same database */<br />

public static void example(AQSession aq_sess) throws AQException<br />

{<br />

AQQueue queue;<br />

AQAgent agent1;<br />

AQAgent agent2;<br />

}<br />

/* Get the queue object */<br />

queue = aq_sess.getQueue("AQ", "q1def");<br />

queue.unschedulePropagation(null);<br />

/* Unschedule propagation from a queue to other queues in another database */<br />

public static void example(AQSession aq_sess) throws AQException<br />

{<br />

AQQueue queue;<br />

9-76 <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!