Creating an Outbound Adapter Service Wiring Services and Activities

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 . 7-68 Oracle Fusion Middleware Users Guide for Technology Adapters Figure 7–59 The BPELRawqueue.bpel Page

6. Double-click the Receive activity.

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.

8. Select Raw-Dequeuer, and then click OK.

The Receive dialog is displayed with the Partner Link field populated with the value Raw-Dequeuer.

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 default values, and click OK.

11. Check the Create Instance box, as shown in

Figure 7–60 , and click OK. Oracle JCA Adapter for AQ 7-69 Figure 7–60 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 Raw-Enqueuer, and then click OK.

The Invoke dialog is displayed with the Partner Link field populated with the value Raw-Enqueuer.

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

the Input Variable field.

16. Accept the default values, and click OK.

The Invoke dialog is displayed, as shown in Figure 7–61 . Figure 7–61 The Invoke Dialog

17. Click OK.

18. Double-click the Assign activity.

The Assign dialog is displayed. 7-70 Oracle Fusion Middleware Users Guide for Technology Adapters

19. Click the plus icon, and select Copy Operation.

The Create Copy Operation dialog is displayed. 20. Select the variables, as shown in Figure 7–62 , and click OK. Figure 7–62 The Create Copy Operation Dialog

21. Click OK in the Assign dialog.

The JDeveloper BPELRawqueue.bpel page is displayed, as shown in Figure 7–63 . Oracle JCA Adapter for AQ 7-71 Figure 7–63 The BPELRawqueue.bpel Page

22. Click File, Save All.

7.4.3.6 Configuring the Data Sources in the Oracle WebLogic Server Administration Console

1. Navigate to http:servername:portnumberconsole.

2. Use the required credentials to open the Home page of the Oracle WebLogic

Server Administration Console.

3. In the Home page, under Domain Structure, select Services, JBDC, and then click

DataSources . The Summary of JDBC Data Sources page is displayed.

4. Click New. The Create a New JDBC Data Source page is displayed.

5. Enter the values for the properties to be used to identify your new JDBC data

source.

6. Click Next. The Create a New JDBC Data Source Transaction Options page is

displayed.

7. Click Next. The Create a New JDBC Data Source Connection Properties page is

displayed.

8. Enter the connection properties in the Connection Properties page.

9. Click Next. The Create a New JDBC Data Source Test Database Connection page is

displayed.

10. Click Test Configuration to test the database availability and the connection

properties you provided. A message stating that the connection test succeeded is displayed at the top of the Create a New JDBC Data Source Test Database Connection page.

11. Click Next. The Create a New JDBC Data Source Select Targets page is displayed.

7-72 Oracle Fusion Middleware Users Guide for Technology Adapters

12. Select a target, and then click Finish.

The Summary of JDBC Data Sources page is displayed. This page summarizes the JDBC data source objects that have been created in this domain. The Data Source that you created is displayed in this list. 13. Close the Oracle WebLogic Server Administration Console.

7.4.3.7 Deploying with JDeveloper

You must deploy the application profile for the SOA project and the application you created in the preceding steps. The following are the steps to deploy the application profile using JDeveloper:

1. Create an application server connection by using the procedure described in

Chapter 2.7, Creating an Application Server Connection for Oracle JCA Adapters.

2. Deploy the application by using the procedure described in

Section 2.8, Deploying Oracle JCA Adapter Applications from JDeveloper.

7.4.3.8 Monitoring Using the Fusion Middleware Control Console

You can monitor the deployed composite by using the Fusion Middleware Control Console. Perform the following steps: 1. Navigate to http:servername:portnumberem. The composite you deployed is displayed in the Application Navigator. 2. In the Last 5 Instances pane, there is an entry of a new instance. This is the instance that triggered when you enqueued a message. 3. Click one of the instances. The Flow Trace page is displayed.

4. Click the BPELRawqueue component instance.

The Audit page is displayed.

5. Click the Flow-Debug tab to debug the instance.

8 Oracle JCA Adapter for JMS 8-1 8 Oracle JCA Adapter for JMS This chapter describes how to use the Oracle JCA Adapter for JMS Oracle JMS Adapter, which enables an Oracle BPEL process or an Oracle Mediator component to interact with JMS. This chapter includes the following topics: ■ Section 8.1, Introduction to the Oracle JMS Adapter ■ Section 8.2, Oracle JMS Adapter Features ■ Section 8.3, Oracle JMS Adapter Concepts ■ Section 8.4, Oracle JMS Adapter Use Cases

8.1 Introduction to the Oracle JMS Adapter

The JMS architecture uses one client interface to many messaging servers. The JMS model has two messaging domains, point-to-point and publish-subscribe. In the point-to-point domain, messages are exchanged through a queue and each message is delivered to only one receiver. In the publish-subscribe model, messages are sent to a topic and can be read by many subscribed clients. You can obtain JMS adapter sample files by accessing the Oracle SOA Sample Code site, and selecting the Adapters tab. This section includes the following topics: ■ Section 8.1.1, Oracle JMS Adapter Integration with Oracle BPEL Process Manager ■ Section 8.1.2, Oracle JMS Adapter Integration with Oracle Mediator

8.1.1 Oracle JMS Adapter Integration with Oracle BPEL Process Manager

The JCA Binding Component is used for the bidirectional integration of the JCA 1.5 resource adapters with BPEL Process Manager. The JCA Binding Component is based on standards and employs the Web service Invocation Framework WSIF technology for exposing the underlying JCA interactions as Web services. For information on Oracle JMS Adapter architecture, adapter integration with Oracle BPEL Process Manager Oracle BPEL PM, and adapter deployments, see Chapter 3, Adapter Integration with Oracle Application Server Components.

8.1.2 Oracle JMS Adapter Integration with Oracle Mediator

Mediator supports Oracle JCA Adapters and enables you to define inbound and outbound adapter services for each. An inbound adapter service receives data from an