Introduction to the Mediator Editor Environment

18-6 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite

18.3 Creating an Oracle Mediator

You can create an Oracle Mediator in multiple ways, depending on where you are in your application development process.

18.3.1 How to Create an Oracle Mediator

You can create an Oracle Mediator in a SOA composite application of Oracle JDeveloper using one of the following methods: ■ When you create a composite application ■ From within an existing composite application ■ When you create a project ■ From within an existing project When you create an Oracle Mediator using any of these methods, the Create Mediator dialog appears so you can name the Oracle Mediator component and select a template for the interface. To create an Oracle Mediator when creating a composite application: 1. Create and Name the SOA application and project using the Create SOA Application wizard.

2. When you reach the Configure SOA Settings page, select Composite with

Mediator in the Composite Template list, as shown in Figure 18–3 . Figure 18–3 Composite with Oracle Mediator Selection in Create SOA Project Wizard

3. Click Finish.

The Create Mediator dialog appears. 4. Configure the Oracle Mediator interface, as described in Section 18.4, Configuring the Oracle Mediator Interface Definition . Getting Started with Oracle Mediator 18-7 To create an Oracle Mediator within a composite application: 1. Open the composite application to which you are adding an Oracle Mediator in the SOA Composite Editor. 2. Drag and drop an Oracle Mediator from the Component Palette shown in Figure 18–4 to the Components section of the editor. Figure 18–4 Component Palette with an Oracle Mediator Service Component The Create Mediator dialog appears. 3. Configure the Oracle Mediator interface, as described in Section 18.4, Configuring the Oracle Mediator Interface Definition . To create an Oracle Mediator when creating a new project: 1. Using the New Gallery wizard, create and name a new SOA project in the SOA Tier category.

2. On the Configure SOA Settings page of the New Gallery dialog, select Composite

With Mediator from the Composite Template list, shown in Figure 18–5 . Tip: The Component Palette is to the right of the SOA Composite Editor. Tip: The New Gallery wizard appears when you select New Project from the Application menu to the right of the application name in the Application Navigator. You can also right-click in the Application Navigator and select New. 18-8 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite Figure 18–5 Create SOA Project Wizard with Composite With Mediator Template Shown

3. Click Finish.

The Create Mediator dialog appears. 4. Configure the Oracle Mediator interface, as described in Section 18.4, Configuring the Oracle Mediator Interface Definition . To create an Oracle Mediator within an existing project: 1. In the Application Navigator, select the project to which you want to add an Oracle Mediator.

2. Right-click in the navigator pane and select New.

3. Under Categories, select Service Components, and then select Mediator from the

Items list, as shown in Figure 18–6 . Getting Started with Oracle Mediator 18-9 Figure 18–6 New Gallery Dialog with Oracle Mediator Service Component

4. Click OK.

The Create Mediator dialog appears.

5. Configure the Oracle Mediator interface, as described in

Section 18.4, Configuring the Oracle Mediator Interface Definition .

18.4 Configuring the Oracle Mediator Interface Definition

When you create a new Oracle Mediator, you can specify an interface template that generates a basic set of default files in the Oracle Mediator project. These files provide a framework from which you can design and configure the Oracle Mediator. You can create an Oracle Mediator with the following interface options: ■ Oracle Mediator with no interface definition ■ Oracle Mediator with the interface defined by a WSDL file ■ Oracle Mediator with a one-way interface ■ Oracle Mediator with a synchronous interface ■ Oracle Mediator with an asynchronous interface ■ Oracle Mediator that subscribes to events

18.4.1 Creating an Oracle Mediator Without an Interface Definition