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 transformation is always in the context of the gateway agent, which means that<br />

the gateway agent user must have execute privileges on the transformation function<br />

and the AQ payload type. This can be accomplished by granting the EXECUTE<br />

privilege to PUBLIC, or by granting the EXECUTE privilege directly to the gateway<br />

agent user.<br />

Message Conversion for MQSeries<br />

The Messaging Gateway MQSeries driver converts between the internal message<br />

format and the MQSeries native message format. MQSeries native messages consist<br />

of a fixed message header and a message body. The message body is treated as<br />

either a TEXT value or RAW (bytes) value.<br />

Figure 18–4 illustrates the message conversion performed by the MQSeries driver.<br />

For outbound propagation, the driver maps the AQ message properties and<br />

canonical message to a native message having a fixed header and message body.<br />

For inbound propagation, the driver maps a native message to a set of AQ message<br />

properties and a canonical message.<br />

Figure 18–4 MQSeries Message Conversion<br />

Messaging Gateway<br />

Message<br />

AQ Property<br />

Canonical Header<br />

Canonical Body<br />

For outbound propagation, an MGW_BASIC_MSG_T canonical message is mapped to<br />

an MQSeries native message as follows:<br />

18-32 <strong>Oracle</strong>9i Application Developer’s Guide - <strong>Advanced</strong> <strong>Queuing</strong><br />

MQSeries<br />

Message<br />

Header<br />

Body<br />

Outbound<br />

Propagation<br />

Inbound<br />

Propagation

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

Saved successfully!

Ooh no, something went wrong!