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 />

Figure 18–3 AQ Message Conversion<br />

<strong>Advanced</strong> <strong>Queuing</strong><br />

Message<br />

AQ Property<br />

AQ Payload<br />

Transformation<br />

Function<br />

Transformation<br />

Function<br />

For outbound propagation, after dequeuing a message from an AQ queue, the<br />

gateway agent constructs an internal message by mapping the AQ message<br />

properties of the AQ message to the AQ message properties of the internal message<br />

and converting the AQ payload to an object of the canonical type.<br />

For inbound propagation, after receiving an internal message from a non-<strong>Oracle</strong><br />

driver, the gateway agent converts the canonical message to the AQ payload and<br />

then enqueues a message with that payload and the internal AQ message<br />

properties.<br />

The agent can directly enqueue and dequeue messages with a payload of RAW or<br />

SYS.MGW_BASIC_MSG_T to and from AQ queues. The agent provides automatic<br />

mapping between the two payload types and the canonical type. For a payload type<br />

other than RAW or SYS.MGW_BASIC_MSG_T type, a user-supplied transformation<br />

must be provided for conversion between the AQ payload type and the canonical<br />

type.<br />

In general, for outbound propagation, the AQ payload type or output of a<br />

user-supplied transformation must be either RAW or SYS.MGW_BASIC_MSG_T. For<br />

inbound propagation, the AQ payload or input type of a user-supplied<br />

transformation must be either RAW or SYS.MGW_BASIC_MSG_T.<br />

Converting RAW AQ Payload Types<br />

For outbound propagation, the following rules apply:<br />

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

Messaging Gateway<br />

Message<br />

AQ Property<br />

Canonical Type<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!