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.

q_table = aq_sess.createQueueTable ("aq", "PriorityMsgs_qtab",<br />

qtable_prop);<br />

}<br />

Creating a Queue Table<br />

System.out.println("Successfully created PriorityMsgs_qtab in aq schema");<br />

Creating a queue table in specified tablespace<br />

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

{<br />

AQQueueTableProperty qtable_prop;<br />

AQQueueProperty queue_prop;<br />

AQQueueTable q_table;<br />

AQQueue queue;<br />

}<br />

/* Create a AQQueueTableProperty object (payload type Message_typ): */<br />

qtable_prop = new AQQueueTableProperty("AQ.MESSAGE_TYP");<br />

/* Specify tablespace for queue table */<br />

qtable_prop.setStorageClause("tablespace aq_tbs");<br />

/* Create a queue table in aq schema */<br />

q_table = aq_sess.createQueueTable ("aq", "aq_tbsMsg_qtab", qtable_prop);<br />

Administrative Interface 9-11

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

Saved successfully!

Ooh no, something went wrong!