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.

Converting Messages<br />

The MQSeries fixed header fields are based on the internal AQ message<br />

<br />

properties and the MGW_BASIC_MSG_T.header attribute of the canonical<br />

message.<br />

Refer to Table 18–1 for the default mapping for certain MQSeries header fields<br />

based on the AQ message properties, if a value is not specified.<br />

The driver looks in MGW_BASIC_MSG_T.header for the {name,value} pairs<br />

described in Table 18–4 and, for each one found, uses that value for the<br />

MQSeries header field. Any {name,value} pairs with an unrecognized name or<br />

incorrect value type are ignored.<br />

If the canonical message has a TEXT body, the MQSeries format header field is<br />

<br />

set to MQFMT_STRING and the message body is set to the TEXT value.<br />

If the canonical message has a RAW body, the MQSeries format header field is set<br />

<br />

to "MGW_Byte" and the message body is set to the RAW value.<br />

If the canonical message has both a TEXT and RAW body, message conversion<br />

<br />

fails.<br />

If the canonical message has neither a TEXT nor RAW body, no message body is<br />

<br />

set and the MQSeries format header field is MQFMT_NONE.<br />

For inbound propagation, the MQSeries native message is mapped to an MGW_<br />

BASIC_MSG_T canonical message as follows:<br />

Specific MQSeries header fields are mapped to AQ message properties as<br />

<br />

described in Table 18–1.<br />

The MGW_BASIC_MSG_T.header attribute of the canonical message is set to<br />

<br />

{name,value} pairs based on the MQSeries header fields, as described in<br />

Table 18–4.<br />

If the MQSeries format header field is MQFMT_STRING, the MQSeries message<br />

<br />

body is treated as TEXT and its value is mapped to MGW_BASIC_MSG_T.text_<br />

body. For any other format value, the message body is treated as RAW and its<br />

value is mapped to MGW_BASIC_MSG_T.raw_body.<br />

Message Header Conversions<br />

Messaging Gateway provides default mappings between AQ message properties<br />

and non-<strong>Oracle</strong> message header fields that have a counterpart in AQ message<br />

properties with the same semantics. Where Messaging Gateway does not provide a<br />

mapping, the message header fields are set to a default value, usually the default<br />

value defined by the messaging system.<br />

Messaging Gateway 18-33

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

Saved successfully!

Ooh no, something went wrong!