Using the AQ adapter to send messages to the database

In this recipe, we will configure an outbound AQ adapter, so that it can be used to publish messages from the Oracle Service Bus to an Oracle AQ queue on the database:

Using the AQ adapter to send messages to the database

The AQ database queue CUSTOMER_QUEUE, which we will use has been set up with the OSB Cookbook standard environment using the following SQL and PL/SQL code:

BEGIN sys.dbms_aqadm.create_queue_table( queue_table => 'CUSTOMER_QUEUE_T', queue_payload_type => 'SYS.XMLTYPE', storage_clause => 'PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255', sort_list => 'ENQ_TIME', compatible => '8.1.3'); END; / BEGIN sys.dbms_aqadm.create_queue( queue_name ...

Get Oracle Service Bus 11g Development Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.