Deploying with JDeveloper Dequeue Enqueue

Oracle JCA Adapter for MQ Series 10-73 ■ test_in ■ test_reply

10.6.2.2 Designing the SOA Composite

You must create a JDeveloper application to contain the SOA composite. To create an application and a project for the use case, perform the following:

1. In JDeveloper, click File and select New.

The New Gallery dialog is displayed.

2. Expand the General node, and select the Applications category.

3. In the Items list, select Generic Application and click OK. The Create Generic

Application Wizard is displayed.

4. In the Name Your Application screen, enter SyncReqRes in the Application

Name field, and then click Next. The Name Your Project screen is displayed. 5. In the Project Name field, enter Sync_ReqRes and from the Available list, select SOA and click the right-arrow button.

6. Click Next. The Configure SOA Settings screen is displayed.

7. In the Composite Template list, select Composite With BPEL and then click

Finish . The Create BPEL Process dialog is displayed. The Application Navigator of JDeveloper is updated with the new application and project and the Design tab contains, a blank palette.

8. Enter BPELsyncreqres in the Name field, select Define Service Later from the

Template box.

9. Click OK. The SyncReqRes application and Sync_ReqRes project appears in the

design area, as shown in Figure 10–57 . 10-74 Oracle Fusion Middleware Users Guide for Technology Adapters Figure 10–57 The JDeveloper - Composite.xml

10.6.2.3 Creating an Inbound Adapter Service

Perform the following steps to create an adapter service that will dequeue the message from a queue:

1. Drag and drop MQ Adapter from the Component Palette into the Exposed

Services swim lane. The Adapter Configuration Wizard Welcome page is displayed.

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

3. Enter inbound_reqres in the Service Name field, and click Next. The MQ Series

Connection page is displayed. 4. Accept the default JNDI name for the MQ Series connection JNDI name, and click Next . The Adapter Interface page is displayed.

5. Select Define from operation and schema specified later, and click Next. The

Operation Type page is displayed.

6. Select Get Message from MQ and Send ReplyReports, and select Synchronous,

as shown in Figure 10–18 , and click Next. The Get Message from MQ and Send ReplyReports page is displayed.

7. Select Normal in the Message Type box, and enter test_in in the Queue Name

field.

8. Click Next. The Response page is displayed.

9. Accept the defaults, and click Next. The Messages page is displayed.

10. Select Project Schema Files, address-csv.xsd, and then Root-Element, and click

OK . The address-csv.xsd file appears in the URL field in the Messages page.