Specifying a TCP Port in a Configuration Plan For an Oracle Socket Adapter

Oracle JCA Adapter for Sockets 5-37 4. Deploy your composite with the configuration plan. When deployed, the Oracle Socket Adapter will listen on port 2222, as provided in the configuration plan. If you deploy the composite without a configuration plan or if the configuration plan does not override the Port property, then the Oracle Socket Adapter will listen on the socket that the composite.xml files default Port property specifies in this example, port 1111.

5.5 Oracle Socket Adapter Use Cases

This section includes the following Oracle Socket Adapter use cases: ■ Section 5.5.1, Oracle Socket Adapter Hello World ■ Section 5.5.2, Flight Information Display System

5.5.1 Oracle Socket Adapter Hello World

This is a simple HelloWorld use case, which demonstrates the synchronous inbound requestresponse and synchronous outbound requestresponse modes of communication using Oracle Socket Adapter. The HelloWorld business process takes an input string from the Oracle Socket Adapter inbound service and publishes the message to the BPEL process. The BPEL process invokes the Oracle Socket Adapter outbound service a simple HelloWorld Server, which adds a prefix ?Hello? to the input string and returns it and returns the received string using a synchronous reply. This use case includes the following sections: ■ Section 5.5.1.1, Prerequisites ■ Section 5.5.1.2, Designing the SOA Composite ■ Section 5.5.1.3, Creating the Inbound Oracle Socket Adapter Service ■ Section 5.5.1.4, Creating the Outbound Oracle Socket Adapter Service ■ Section 5.5.1.5, Wiring Services and Activities ■ Section 5.5.1.6, Deploying with JDeveloper ■ Section 5.5.1.7, Monitoring Using the Oracle Enterprise Manager Fusion Middleware Control Console Fusion Middleware Control Console

5.5.1.1 Prerequisites

To perform this use case, you require the following files from the artifacts.zip file contained in the Adapters-101SocketAdapterHelloWorld sample: ■ artifactsschemasHelloWorld.xsd ■ artifactsxslrequest.xsl ■ artifactsxslreply.xsl ■ artifactsxslinvoke.xsl You can access the Adapters-101SocketAdapterHelloWorld sample on the Oracle SOA Sample Code site. 5-38 Oracle Fusion Middleware Users Guide for Technology Adapters

5.5.1.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 Application Navigator of JDeveloper, click New Application. The Create

Generic Application - Name your application page is displayed.

2. Enter helloworld-socket in the Application Name field, as shown in

Figure 5–39 , and then click Next. The Name your project page is displayed. Figure 5–39 The Create SOA Application Dialog

3. Click OK. The Name Your Project dialog is displayed.

4. Enter HelloWorldComposite in the Project Name field, and then select SOA

under Project Technologies and move it to the Selected box by clicking the right-arrow, as shown in Figure 5–40 . The HelloWorld application and the HelloWorldComposite project appear in the Application Navigator.