Creating an Application Server Connection Creating an Application and an SOA Project Creating an Inbound Adapter Service

8-34 Oracle Fusion Middleware Users Guide for Technology Adapters Figure 8–15 The Adapter Configuration Wizard JMS Provider Page

5. Select the connection created in

Section 8.4.5.2, Creating an Application Server Connection, as shown in Figure 8–16 . Figure 8–16 The Adapter Configuration Wizard Service Connection Page

6. Click Next. The Adapter Interface page is displayed.

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

Operation page is displayed.

8. Select Consume Message, as shown in

Figure 8–17 , and click Next. Oracle JCA Adapter for JMS 8-35 The Consume Operation Parameters page is displayed. Figure 8–17 The Adapter Configuration Wizard Operation Page

9. Click Browse and select ReceiveQueue in the Destination field.

The Consume Operation Parameters page is displayed.

10. Enter the parameters for the consume operation, and then click Next.

The Messages page is displayed.

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

The Type Chooser dialog is displayed.

12. Select Project Schema Files, Q2Qorders.xsd, and Items, as shown in

Figure 8–18 . Note: The value specified in the JNDI name should exist in the Oracle JMS Adapter weblogic-ra.xml file to ensure that the adapter runs in managed mode. 8-36 Oracle Fusion Middleware Users Guide for Technology Adapters Figure 8–18 The Type Chooser Dialog

13. Click Next. The Q2Qorders.xsd schema file is displayed in the URL in the

Messages page, as shown in Figure 8–19 . Figure 8–19 The Adapter Configuration Wizard - Message Page

14. Click Next. The Finish page is displayed.

15. Click Finish. You have configured a JMS inbound adapter service.

Oracle JCA Adapter for JMS 8-37

8.4.5.5 Creating an Outbound Adapter Service

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

1. Drag and drop JMS 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 Outbound in the Service Name field, and click OK. The JMS Provider page

is displayed.

4. Select Oracle Weblogic JMS in the Oracle Enterprise Messaging Service OEMS

box, and click Next. The Service Connection page is displayed. 5. Select the connection created in Section 8.4.5.2, Creating an Application Server Connection, and click Next. The Adapter Interface page is displayed.

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

Operation page is displayed.

7. Select Produce Message, and click Next. The Produce Operation Parameters page

is displayed.

8. Click Browse and select SendQueue in the Destination field. The Produce

Operation Parameters page is displayed.

9. Click Next. The Messages page is displayed.

10. Click Browse at the end of the URL field. The Type Chooser dialog is displayed.

11. Select Project Schema Files, Q2Qorders.xsd, and Items.

12. Click Next. The Q2Qorders.xsd schema file is displayed in the URL in the Message

dialog.

13. Click Next. The Finish page is displayed.

14. Click Finish. You have configured the JMS adapter service, and the composite.xml

page is displayed.

8.4.5.6 Wiring Services and Activities

You must wire the three components that you have created, Inbound adapter service, BPEL process, and Outbound adapter reference. Perform the following steps to wire components together: 1. Drag the small triangle in the inbound Oracle JMS Adapter component 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 the outbound Oracle JMS Adapter in the External References area. The JDeveloper Composite.xml is displayed, as shown in Figure 8–20 . 8-38 Oracle Fusion Middleware Users Guide for Technology Adapters Figure 8–20 The JDeveloper - Composite.xml

3. Click File, Save All.

4. Double-click queue2queue.

The queue2queue.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, as shown in Figure 8–21 . Figure 8–21 The queue2queue.bpel Page

6. Double-click Receive.

The Receive dialog is displayed.

7. Click the Browse Partner Links icon at the end of the Partner Link field.

The Partner Link Chooser dialog is displayed. Oracle JCA Adapter for JMS 8-39

8. Select Inbound, and then click OK.

The Receive dialog is displayed with the Partner Link field populated with the value Inbound.

9. Click the Auto-Create Variable icon that is displayed at the end of the Variable

field. The Create Variable dialog is displayed.

10. Accept the defaults, and click OK.

11. Select the Create Instance box, as shown in

Figure 8–22 , and click OK. Figure 8–22 The Receive Dialog

12. Double-click the Invoke activity.

The Invoke dialog is displayed.

13. Click the Browse Partner Links icon at the end of the Partner Link field.

The Partner Link Chooser dialog is displayed.

14. Select Outbound, and then click OK.

The Invoke dialog is displayed with the Partner Link field populated with the value Outbound.

15. Click the Automatically Create Input Variable icon that is displayed at the end of

the Input Variable field. The Create Variable dialog is displayed.

16. Accept the defaults, and click OK.

The Invoke dialog is displayed, as shown in Figure 8–23 .