Prerequisites Creating an Application and an SOA Project Creating an Inbound Adapter Service

7-62 Oracle Fusion Middleware Users Guide for Technology Adapters

8. In the Operation page, select Dequeue, as shown in

Figure 7–51 .

9. Accept the default operation name, and click Next.

The Queue Name page is displayed. Figure 7–51 The Adapter Configuration Wizard Operation Page

10. In the Queue Name page, select SCOTT as Database Schema and RAW_IN_

QUEUE as Queue Name, as shown in Figure 7–52 . Figure 7–52 The Adapter Configuration Wizard Queue Name Page Oracle JCA Adapter for AQ 7-63

11. Click Next.

The Queue Parameters page is displayed.

12. Enter the Correlation ID and a Dequeue condition, and then click Next.

The Messages page is displayed.

13. Click Browse at the end of the URL field.

The Type Chooser dialog is displayed.

14. Select Project Schema Files, emp.xsd, and then AQRaw_End2End, as shown in

Figure 7–53 . Figure 7–53 The Type Chooser Dialog

15. Click OK.

The emp.xsd schema file is displayed in the URL field in the Message dialog, as shown in Figure 7–54 . 7-64 Oracle Fusion Middleware Users Guide for Technology Adapters Figure 7–54 The Adapter Configuration Wizard Messages Page

16. Click Next. The Finish page is displayed.

17. Click Finish. You have configured the Oracle AQ Adapter service, and the

composite.xml page is displayed, as shown in Figure 7–55 . Figure 7–55 The JDeveloper Window Composite.xml Page Oracle JCA Adapter for AQ 7-65

7.4.3.4 Creating an Outbound Adapter Service

Perform the following steps to create an adapter service that will enqueue the request messages and dequeue the corresponding response messages report from a queue:

1. Drag and drop AQ Adapter from the Service Adapters list in the Component

Palette to the Exposed Services swim lane in the composite.xml page. The Adapter Configuration Wizard Welcome page is displayed.

2. Click Next. The Service Name page is displayed.

3. Enter Raw-Enqueuer in the Service Name field, and click OK.

The Service Connection page is displayed.

4. Select XA Datasource, and then click Next.

The Operation page is displayed.

5. Select Enqueue.

6. Accept the default operation name, and click Next.

The Queue Name page is displayed.

7. Select SCOTT as Database Schema and RAW_OUT_QUEUE as Queue Name, as

shown in Figure 7–56 . Figure 7–56 The Adapter Configuration Wizard Queue Name Page

8. Click Next.

The Queue Parameters page is displayed.

9. Enter the Correlation ID, and then click Next.

The Messages page is displayed.

10. Click Browse for schema file at the end of the URL field.

The Type Chooser dialog is displayed. 7-66 Oracle Fusion Middleware Users Guide for Technology Adapters

11. Select Project Schema Files, emp.xsd, and AQRaw_End2End, as shown in

Figure 7–53 .

12. Click Next.

The emp.xsd schema file is displayed in the URL field in the Message dialog, as shown in Figure 7–54 .

13. Click Next.

The Finish page is displayed.

14. Click Finish.

You have configured the Oracle AQ Adapter service, and the composite.xml page is displayed, as shown in Figure 7–57 . Figure 7–57 The JDeveloper Window Composite.xml Page

7.4.3.5 Wiring Services and Activities

You must assemble or wire the three components that you have created: Inbound adapter service, BPEL process, and Outbound adapter reference. Perform the following steps to wire the components together: 1. Drag the small triangle in the Raw-Dequeuer in the Exposed Services area to the drop zone that appears as a green triangle in the BPEL process in the Components area. 2. Drag the small triangle in the BPEL process in the Components area to the drop zone that appears as a green triangle in Raw-Enqueuer in the External References area. Similarly, drag the small triangle in the BPEL process in the Components area to the drop zone in OutboundService in the External References. Oracle JCA Adapter for AQ 7-67 The JDeveloper composite.xml file is displayed, as shown in Figure 7–58 . Figure 7–58 The JDeveloper- Composite.xml

3. Click File, Save All.

4. Double-click BPELRawqueue.

The BPELRawqueue.bpel page is displayed.

5. Drag and drop the Receive, Assign, and Invoke activities in the order mentioned,

from the Component Palette to the Components area. The JDeveloper BPELRawqueue.bpel page is displayed, as shown in Figure 7–59 .