Prerequisites Inbound Synchronous Request-Reply

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. Oracle JCA Adapter for MQ Series 10-75

11. In the Send Message Schema group, click Browse at the end of the URL field. The

Type Chooser dialog is displayed.

12. Select Project Schema Files, address-fixedLength.xsd, and then Root-Element,

and click OK. The address-fixedLength.xsd file appears in the URL field in the Messages page.

13. Click Next. The Finish page is displayed.

14. Click Finish. You have now configured the inbound adapter service, and the

composite.xml page is displayed, as shown in Figure 10–58 . Figure 10–58 The JDeveloper Page - Composite.xml Page

15. Click File, Save All.

10.6.2.4 Wiring Services and Activities

Perform the following steps to wire components together:

1. Drag and drop the inbound_reqres adapter service to the BPELsyncreqres

BPEL process.

2. Double-click BPELsyncreqres. The BPELsyncreqres.bpel page is displayed.

3. Drag and drop the Receive, Transform, and Reply activities in the order

mentioned from the Component Palette to the Components area.

4. Drag and drop the Receive activity to the inbound_reqres adapter service. The

Receive dialog is displayed.

5. Enter ReadMsg in the Name field.

6. Click the Auto Create Variable icon that appears at the end of the Variable field.

The Create Variable dialog is displayed.