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.

Messaging Gateway Canonical Types<br />

Converting Messages<br />

Messaging Gateway defines canonical types to support message conversion<br />

between <strong>Advanced</strong> <strong>Queuing</strong> and non-<strong>Oracle</strong> messaging systems. A canonical type<br />

is a message type representation in the form of a PL/SQL abstract data type (ADT)<br />

in the <strong>Oracle</strong>9i database. In release 9.2, the canonical type MGW_BASIC_MSG_T<br />

supports conversion between <strong>Advanced</strong> <strong>Queuing</strong> and MQSeries.<br />

MGW_BASIC_MSG_T is used to represent messages that have a message header and<br />

a TEXT or RAW (bytes) message body. The message header is represented as a set of<br />

{name,value} pairs, which are objects of the MGW_NAME_VALUE_T type.<br />

See Also: <strong>Oracle</strong>9i Supplied PL/SQL Packages and Types Reference,<br />

DBMS_MGWMSG, for<br />

Syntax and attribute information for MGW_BASIC_MSG_T<br />

Syntax and attribute information for MGW_NAME_VALUE_T<br />

A list of constants for the MGW_NAME_VALUE_T value types<br />

Helper routines for MGW_NAME_VALUE_ARRAY_T<br />

Message Conversion for <strong>Advanced</strong> <strong>Queuing</strong><br />

Native AQ messages consist of AQ message properties and a message payload of<br />

either RAW or a user-defined ADT type.<br />

The Messaging Gateway agent converts messages between the native AQ message<br />

format and the internal message format. Figure 18–3 illustrates the message<br />

conversion performed by the AQ driver.<br />

Messaging Gateway 18-29

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

Saved successfully!

Ooh no, something went wrong!