This illustration shows AQ message conversion. The Messaging Gateway agent converts messages between the native AQ message format and the internal message format, using the AQ driver. For outbound propagation, after dequeuing a message from an AQ queue, the gateway agent constructs an internal message by mapping the AQ message properties of the AQ message to the AQ message properties of the internal message, and converting the AQ payload to an object of the canonical type. For inbound propagation, after receiving an internal message from a non-Oracle driver, the gateway agent converts the canonical message to the AQ payload and then enqueues a message with that payload and the internal AQ message properties. The figure also shows a possible user-supplied transformation function to covert between message types, for both inbound and outbound propagation.