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.

General Features of JMS<br />

JMS time stamp when the message was enqueued (Greenwich Mean Time, in<br />

milliseconds) and the time-to live (in milliseconds). Refer to "J2EE Compliance"<br />

on page 12-3 for more information.<br />

JMSPriority - This field contains the priority of the message. In<br />

<br />

J2EE-compliance mode, the permitted values for priority are 0–9, with 9 the<br />

highest priority and 4 the default, in conformance with Sun Microsystem’s JMS<br />

1.0.2b standard. Noncompliant mode is the default. Refer to "J2EE Compliance"<br />

on page 12-3 for more information. JMS permits an administrator to configure<br />

JMS to override the client-specified values for JMSDeliveryMode,<br />

JMSExpiration and JMSPriority.<br />

Message Properties<br />

Properties are a mechanism to add optional header fields to a message. Properties<br />

allow a client, using message selectors, to have a JMS provider select messages on<br />

its behalf using application-specific criteria. Property names are Strings and values<br />

can be: boolean, byte, short, int, long, float, double, and string.<br />

JMS-defined properties begin with "JMSX".<br />

JMSXUserID - The identity of the user sending the message.<br />

JMSXAppID - this is the identity of the application sending the message.<br />

JMSXDeliveryCount - the number of message delivery attempts.<br />

JMSXGroupid - this field is set by the client refers to the identity of the message<br />

<br />

group, this message is a part of.<br />

JMSXGroupSeq - the sequence number of a message within a group.<br />

JMSXRcvTimeStamp - the time the message was delivered to the consumer<br />

<br />

(dequeue time)<br />

JMSXState - message state set by provider. Message can be WAITING, READY,<br />

<br />

EXPIRED or RETAINED<br />

<strong>Oracle</strong> JMS specific properties begin with JMS_<strong>Oracle</strong>. The following properties<br />

are <strong>Oracle</strong>-specific:<br />

JMS_<strong>Oracle</strong>ExcpQ - queue name to send the message to if it cannot be<br />

<br />

delivered to the original destination. Only Destinations of type EXCEPTION<br />

can be specified in the JMS_<strong>Oracle</strong>ExcpQ property.<br />

JMS_<strong>Oracle</strong>Delay - time in seconds to delay the delivery of the message.<br />

<br />

This may affect the order if message delivery<br />

Creating Applications Using JMS 12-23

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

Saved successfully!

Ooh no, something went wrong!