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.

Converting Messages<br />

Table 18–4 Messaging Gateway Names for MQSeries Header Values<br />

Messaging Gateway Name<br />

mgw_name_value_t.NAME<br />

"MGW_MQ_messageFlags" INTEGER_VALUE messageFlags Enqueue,<br />

Dequeue<br />

"MGW_MQ_originalLength" INTEGER_VALUE originalLength Enqueue,<br />

Dequeue<br />

"MGW_MQ_<br />

putMessageOptions"<br />

Notes on Table 18–4<br />

Messaging Gateway Type<br />

MGW_NAME_VALUE_<br />

T.type MQSeries Property Name Used For<br />

INTEGER_VALUE putMessageOptions (2) Enqueue (1)<br />

1. This use is subject to MQSeries restrictions. For example, if MGW_MQ_<br />

accountingToken is set for an outgoing message, MQSeries overrides its<br />

value unless MGW_MQ_putMessageOptions is set to the MQSeries constant<br />

MQPMD_SET_ALL_CONTEXT.<br />

2. MGW_MQ_putMessageOptions is used as the putMessageOptions<br />

argument to the MQSeries Base Java Queue.put() method. It is not part of the<br />

MQSeries header information and therefore is not an actual message property.<br />

The value for the openOptions argument of the MQSeries Base Java<br />

MQQueueManager.accessQueue method is specified when the MQSeries<br />

queue is registered using the DBMS_MGWADM.REGISTER_FOREIGN_QUEUE<br />

call. Dependencies may exist between the two. For instance, for MGW_MQ_<br />

putMessageOptions to include MQPMD_SET_ALL_CONTEXT, the MQ_<br />

openMessageOptions queue option must include MQOO_SET_CONTEXT.<br />

The gateway agent adds the value MQPMO_SYNCPOINT to any value that you can<br />

specify.<br />

Table 18–5 describes the default values set by the gateway agent for the MQSeries<br />

message header when a message is enqueued in an MQSeries queue. For all other<br />

header fields, the gateway agent does not set a default value.<br />

Table 18–5 MQSeries Header Default Values<br />

MQSeries Property Name Default Value<br />

messageType MQMT_DATAGRAM<br />

18-38 <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!