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.

Enqueuing a Message [Add Payload]<br />

Msg.Value = "Another message"<br />

Q.Enqueue()<br />

'Enqueue a message with nondefault properties.<br />

Msg.Priority = ORAQMSG_HIGH_PRIORITY<br />

Msg.Delay = 5<br />

Msg.Value = "Urgent message"<br />

Q.Enqueue()<br />

Msg.Value = "The visibility option used in the enqueue call is<br />

ORAAQ_ENQ_IMMEDIATE"<br />

Q.Visible = ORAAQ_ENQ_IMMEDIATE<br />

Msgid = Q.Enqueue<br />

'Enqueue Ahead of message Msgid_1<br />

Msg.Value = "First Message to test Relative Message id"<br />

Msg.Correlation = "RELATIVE_MESSAGE_ID"<br />

Msgid_1 = Q.Enqueue<br />

Msg.Value = "Second message to test RELATIVE_MESSAGE_ID is queued<br />

ahead of the First Message "<br />

OraAq.relmsgid = Msgid_1<br />

Msgid = Q.Enqueue<br />

11-22 <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!