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.

Purpose<br />

Get the Message Property as a String<br />

Usage Notes<br />

Not applicable.<br />

Getting the JMS Message Property as a String<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 />

AQjmsMessage.getStringProperty<br />

Examples<br />

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

each programmatic environment.<br />

TextMessage message;<br />

message.setStringProperty("JMS_<strong>Oracle</strong>ExcpQ", "scott.text_ecxcp_queue"); /*set<br />

exception queue for message*/<br />

message.setStringProperty("color", "red"); /*set user-defined property - color<br />

*/<br />

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

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

Saved successfully!

Ooh no, something went wrong!