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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.