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.

force => TRUE);<br />

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

Dropping a Queue Table<br />

/* Drop a queue table - for which all queues have already been dropped by<br />

the user */<br />

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

{<br />

AQQueueTable q_table;<br />

}<br />

q_table = aq_sess.getQueueTable ("aq", "ObjMsgs_qtab");<br />

/* Drop the queue table*/<br />

q_table.drop(false);<br />

System.out.println("Successful drop");<br />

/* Drop the queue table (and force all queues to be stopped and dropped by<br />

the user */<br />

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

{<br />

AQQueueTable q_table;<br />

}<br />

q_table = aq_sess.getQueueTable ("aq", "ObjMsgs_qtab");<br />

/* Drop the queue table (and automatically drop all queues inside it */<br />

q_table.drop(true);<br />

System.out.println("Successful drop");<br />

Administrative Interface 9-19

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

Saved successfully!

Ooh no, something went wrong!