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.

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

MQSeries Property Name Default Value<br />

Using Header Properties: Examples<br />

Converting Messages<br />

putMessageOption MQPMO_SYNCPOINT will always be added;<br />

refer to (2) in "Notes on Table 18–4" on<br />

page 18-38.<br />

The following propagation scenarios exemplify the use of header properties.<br />

Using MGW_BASIC_MSG_T for Outbound Propagation: Example<br />

Consider an outbound propagation job from an AQ queue to an MQSeries queue.<br />

Because the MQSeries driver supports only the MGW_BASIC_MSG_T type, the<br />

propagation job must be configured so that the AQ driver converts the AQ payload<br />

to an MGW_BASIC_MSG_T canonical message. To accomplish this, either the source<br />

queue payload type must be SYS.MGW_BASIC_MSG_T, or a transformation whose<br />

output (to) type is SYS.MGW_BASIC_MSG_T must be supplied.<br />

For outbound propagation, use the MGW_BASIC_MSG_T.header attribute to<br />

specify native message header properties that are used when the message is<br />

enqueued to the destination queue. In this example, it will contain {name,value}<br />

pairs for MQSeries header properties, as described in Table 18–4.<br />

Although the AQ driver generates {name,value} pairs for the AQ message<br />

properties (refer to Table 18–2), the information is lost because the MQSeries<br />

message format does not allow you to specify user-defined message property<br />

information.<br />

Using MGW_BASIC_MSG_T for Inbound Propagation: Example<br />

For an inbound propagation job from an MQSeries queue to an AQ queue, the<br />

MQSeries driver always converts its native message to an MGW_BASIC_MSG_T<br />

canonical message. Therefore, the propagation job should be configured so that the<br />

AQ driver converts the canonical message to a SYS.MGW_BASIC_MSG_T payload<br />

type. To accomplish this, either the destination queue payload type must be<br />

SYS.MGW_BASIC_MSG_T, or a transformation whose input (from) type is<br />

SYS.MGW_BASIC_MSG_T must be supplied.<br />

When used for inbound propagation, the MGW_BASIC_MSG_T.header attribute<br />

contains {name,value} pairs for the native message header properties of the message<br />

dequeued from the source queue. In this example, it will contain {name,value} pairs<br />

for MQSeries header properties, as described in Table 18–4.<br />

Messaging Gateway 18-39

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

Saved successfully!

Ooh no, something went wrong!