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.

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

Examples<br />

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

each programmatic environment.<br />

/* Set default timeToLive value to 100000 milliseconds for all messages sent by<br />

the QueueSender*/<br />

QueueSender sender;<br />

sender.setTimeToLive(100000);<br />

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

Figure 16–27 Setting Default Priority for All Messages Sent by a Message Producer<br />

User/<br />

Program<br />

JMS Operational Interface - MessageProducer :<br />

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

SPECIFY<br />

Default Priority<br />

See Also:<br />

setPriority, for all messages<br />

sent by a message producer<br />

Table 16–1 for a list of basic operations in the JMS shared<br />

<br />

operational interface<br />

"Interface - javax.jms.MessageProducer" on page B-30<br />

Purpose<br />

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

Usage Notes<br />

Priority values can be any integer. A smaller number indicates higher priority.<br />

If a priority value is explicitly specified during the send operation, it overrides the<br />

producer’s default value set by this method.<br />

16-46 <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!