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.

General Features of JMS<br />

Table 12–3 <strong>Oracle</strong> Defined Message Properties<br />

Header Field/Property Type Set by Use<br />

JMS_<strong>Oracle</strong>ExcpQ String Set by JMS Client Specifies the name of the<br />

exception queue<br />

JMS_<strong>Oracle</strong>Delay int Set by JMS Client Specifies the time (seconds)<br />

after which the message<br />

should become available to<br />

the consumers<br />

JMS_<strong>Oracle</strong>OriginalMessageID<br />

String Set by JMS Provider Specifies the message id of<br />

the message in source when<br />

the messages are propagated<br />

from one destination to<br />

another<br />

Message Body<br />

JMS provides five forms of message body:<br />

StreamMessage - a message whose body contains a stream of Java primitive<br />

<br />

values. It is filled and read sequentially.<br />

BytesMessage - a message whose body contains a stream of uninterpeted bytes.<br />

<br />

This message type is for directly encoding a body to match an existing message<br />

format.<br />

MapMessage - a message whose body contains a set of name-value pairs.<br />

<br />

Names are strings and values are Java primitive types. The entries can be<br />

accessed sequentially by enumerator or randomly by name.<br />

TextMessage - a message whose body contains a java.lang.String.<br />

ObjectMessage - a message that contains a serializable Java object.<br />

ADTmessage - a message whose body contains an <strong>Oracle</strong> ADT type object<br />

<br />

(AdtMessage type has been added in <strong>Oracle</strong> JMS).<br />

The AQ$_JMS_MESSAGE Type<br />

This type can store JMS messages of all the JMS-specified message types:<br />

JMSStream, JMSBytes, JMSMap, JMSText, and JMSObject. You can create a<br />

queue table of AQ$_JMS_MESSAGE type, but use any message type.<br />

12-26 <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!