Enter Greet in the Name field, and then select Synchronous BPEL Process from

9-124 Oracle Fusion Middleware Users Guide for Technology Adapters

5. Click the Create a New Database Connection icon.

The Create Database Connection dialog is displayed. 6. Enter the following details in the Create Database Connection dialog:

a. Enter a connection name in the Connection Name field. For example,

Myconnection.

b. Select Oracle JDBC for Connection Type.

c. Enter the user name and password as scotttiger.

d. Enter the host name in the Host Name field and the JDBC port in the JDBC

Port field. e. Select SID and enter the SID name. Alternatively, select Service Name and enter the service name.

f. Click Test Connection. A success message is displayed in the Status pane.

g. Click OK.

The Connection field is populated with the MyConnection connection and the JNDI field is populated with eisDBMyConnection.

7. Click Next.

The Operation Type page is displayed.

8. Select Call a Stored Procedure or Function, and then click Next.

The Specify Stored Procedure page is displayed.

9. Click Browse. Select HELLO in the Stored Procedures pane.

The Arguments tab displays the parameters of the stored procedure and the Source tab displays the source code of the stored procedure.

10. Click OK.

The Specify Stored Procedure page is displayed. The Procedure field is populated with the HELLO stored procedure and the arguments for the HELLO stored procedure are also displayed.

11. Click Next.

The Advanced Options page is displayed.

12. Specify any additional advanced options, and then click Next.

The Adapter Configuration Wizard - Finish page is displayed.

13. Click Finish.

The Create Partner Link dialog box is displayed. The name of the partner link is Hello, which is the same as the service name.

14. Click OK.

The outbound Oracle Database Adapter is now configured and the Greet BPEL process is displayed.

9.8.2.1.4 Add an Invoke Activity

The following are the steps to add an invoke activity:

1. Drag and drop an Invoke activity from the Component Palette to the design area

between the receiveInput activity and the replyOutput activity. Oracle JCA Adapter for Database 9-125

2. Double-click the Invoke activity.

The Edit Invoke dialog is displayed.

3. Enter Input in the Name field.

4. Click the Automatically Create Input Variable icon to the right of the Input

Variable field in the Invoke box. The Create Variable dialog is displayed.

5. Select the default variable name and click OK.

The Input Variable field is populated with the default variable name. The Invoke dialog is displayed. 6. Repeat the same procedure to select output variable in the Output Variable field. In the Variables section of the Edit Invoke dialog the Input and Output variable names are displayed.

7. Click OK.