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.

Java (JDBC): Dropping a Queue<br />

/* Drop a queue */<br />

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

{<br />

AQQueue queue;<br />

}<br />

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

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

/* Stop the queue first */<br />

queue.stop(true);<br />

/* Drop the queue */<br />

queue.drop();<br />

Dropping a Queue<br />

Administrative Interface 9-33

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

Saved successfully!

Ooh no, something went wrong!