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.

Setting Default Priority for All Messages Sent by a Message Producer<br />

Syntax<br />

See Chapter 3, "AQ Programmatic Environments" for a list of available functions in<br />

each programmatic environment. Use the following syntax references for each<br />

programmatic environment:<br />

See Java (JDBC): <strong>Oracle</strong>9i Supplied Java Packages Reference oracle.jms,<br />

AQjmsProducer.setPriority<br />

Examples<br />

See Chapter 3, "AQ Programmatic Environments" for a list of available functions in<br />

each programmatic environment.<br />

Example 1<br />

/* Set default priority value to 2 for all messages sent by the QueueSender*/<br />

QueueSender sender;<br />

sender.setPriority(2);<br />

Example 2<br />

/* Set default priority value to 2 for all messages sent by the TopicPublisher*/<br />

TopicPublisher publisher;<br />

publisher.setPriority(1);<br />

JMS Operational Interface: Basic Operations (Shared Interfaces) 16-47

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

Saved successfully!

Ooh no, something went wrong!