Skip Headers
Oracle® Enterprise Service Bus Quick Start Guide
10g (10.1.3.1.0)

Part Number B28212-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

5 Building the CustomerDataTutorial

This chapter provides step-by-step instructions on creating and running the CustomerData tutorial.

This chapter includes the following topics:

Introduction to the CustomerData Tutorial

In most business environments, customer data resides in disparate sources, including business partners, legacy applications, enterprise applications, databases, and custom applications. The challenge of integrating this data can be met using Oracle Enterprise Service Bus to deliver appropriate real-time data access to all applications that update or have a common interest in the same data.

For example, Oracle Enterprise Service Bus might accept data contained in a text file, transform it to a format appropriate for updating a database that serves as a customer repository, and route and deliver the data to that database.

To accomplish all the required tasks, Oracle Enterprise Service Bus follows the following basic steps, which are shown in Figure 5-1. These steps are simplified for the purposes of the introductory example. Additional information is provided in the step-by-step portions of this guide.

Figure 5-1 illustrates a scenario in which Oracle Enterprise Service Bus:

  1. Receives the customer data from a file system as a text file, through an inbound file adapter service named CustIn. The CustIn adapter service sends the message to a routing service named CustIn_RS.

  2. The CustIn_RS routing service transforms the data format from the file adapter's schema into the canonical XML schema, and sends the message to the routing service named CustOut_RS.

  3. The CustOut_RS routing service:

    • Routes the message in the canonical format to the CRMOut file adapter service.

    • Applies a filter to the XML message payload to determine whether the message should be routed to the outbound adapter service for the Customer Information Database, CustDBOut.

    • Invokes the appropriate adapter services (as determined by the filter expression). Routing rules specify that messages bound for the CustDBOut service be sent synchronously, while those bound for the CRMOut service be sent asynchronously.

      • If the receiving adapter service is CustDBOut, then the CustDBOut service is invoked immediately and control is not returned to the CustOut_RS service until the message has been received by CustDBOut.

      • If the receiving adapter service is CRMOut, then the message is sent to JMS and control is immediately returned to the CustOut_RS service.

  4. The outbound adapter service delivers the message to its associated external application.

Figure 5-1 Illustration of Scenario

Description of Figure 5-1 follows
Description of "Figure 5-1 Illustration of Scenario"

Step-By-Step Instructions for Setting Up the Tutorial End-to-End

This section provides the steps for loading, building, and registering components required for the tutorial scenario, as described in the following topics. These topics should be read and followed in the order in which they are presented.

Creating the Directory Structure

Download the CustomerSample.zip file and unzip to the folder C:\Customer.

Figure 5-2 illustrates the directory structure used by the CustomerData tutorial.

The Customer folder contains following folders and files:

  • In folder

  • Schema folder: The Schema folder consists of following three XSD files:

    • CommonCustomer.xsd

    • CustomerDB.xsd

    • LegacyCustomer.xsd

  • create_customer.sql file

  • LegacyCustomer.xml file

  • LegacyCustomerCanada.xml file

  • query_customer.sql file

Figure 5-2 CustomerData Tutorial Directory Structure

Description of Figure 5-2 follows
Description of "Figure 5-2 CustomerData Tutorial Directory Structure"

Creating an Oracle JDeveloper Application and Project

You create adapter services using Oracle JDeveloper. To begin work in Oracle JDeveloper, you set up the folders that will hold the files related to your application. From the Applications Navigator, you create a folder for your application and a project within that application folder to hold the ESB tutorial files.

To create an application and a project for the tutorial, follow these steps:

  1. Open Oracle JDeveloper as described in "Opening Oracle JDeveloper".

  2. In the upper left panel, click the Applications Navigator tab.

  3. Right-click Applications, then select New Application. The Create Application dialog box is displayed, as shown in Figure 5-3.

    Figure 5-3 The Create Application Dialog Box

    Description of Figure 5-3 follows
    Description of "Figure 5-3 The Create Application Dialog Box"

  4. In the Application Name field, enter ESBSamples, and then click OK. The Create Project dialog box is displayed.

  5. Click Cancel.

  6. In the Applications Navigator pane, right-click ESBSamples, then select New Project. The New Gallery dialog box is displayed.

  7. From the Categories navigator, select General and then Projects.

  8. From the Items list, select ESB Project as shown in Figure 5-4.

    Figure 5-4 The New Gallery Dialog Box

    Description of Figure 5-4 follows
    Description of "Figure 5-4 The New Gallery Dialog Box"

  9. Click OK. The Create ESB Project dialog box is displayed, as shown in Figure 5-5.

    Figure 5-5 The Create ESB Project Dialog Box

    Description of Figure 5-5 follows
    Description of "Figure 5-5 The Create ESB Project Dialog Box"

  10. In the Project Name field, enter CustomerData, and then click OK.

    Oracle JDeveloper is displayed, as shown in Figure 5-6. The Applications Navigator is updated with the new application and project and the Design Tab contains, a blank palette.

    Figure 5-6 Oracle JDeveloper – Application and ESB Project Added

    Description of Figure 5-6 follows
    Description of "Figure 5-6 Oracle JDeveloper – Application and ESB Project Added"

Importing the Schema Definition (.XSD) Files

The .xsd files that define the structure of the various message formats that will be integrated using Oracle Enterprise Service Bus in this tutorial are included when you install Oracle Enterprise Service Bus. To use them with the ESBSamples application, you must import them, as follows:

  1. In the Applications Navigator pane, select CustomerData.

  2. From the File menu, click Import. The Import dialog box is displayed, as shown in Figure 5-7.

    Figure 5-7 The Import Dialog Box

    Description of Figure 5-7 follows
    Description of "Figure 5-7 The Import Dialog Box"

  3. From the Select What You Want to Import list, select Web Source, and then click OK. The Web Source dialog box is displayed, as shown in Figure 5-8.

    Figure 5-8 The Web Source Dialog Box

    Description of Figure 5-8 follows
    Description of "Figure 5-8 The Web Source Dialog Box"

  4. To the right of the Copy From field, click Browse. The Choose Directory dialog box is displayed.

  5. Navigate to the following directory, and then click Select.

    C:\Customer\Schemas
    
    

    The Web Source dialog box with the directory selected is displayed, as shown in Figure 5-9.

    Figure 5-9 The Web Source Dialog Box

    Description of Figure 5-9 follows
    Description of "Figure 5-9 The Web Source Dialog Box"

  6. Click OK.

  7. In the Applications Navigator pane, expand CustomerData and then WebContent.

    The Applications Navigator should appear as shown in Figure 5-10.

    Figure 5-10 Applications Navigator – ESBSamples/CustomerData/Web Content

    Description of Figure 5-10 follows
    Description of "Figure 5-10 Applications Navigator – ESBSamples/CustomerData/Web Content"

Creating an Oracle Enterprise Service Bus System

To create adapter services, you must first create the Oracle Enterprise Service Bus system that will contain them, as described in the following list:

Note:

Before you create the Oracle Enterprise Service Bus system, you need to delete the existing CustomerData system.

To do that, you need to open the ESB Control Console, click the CustomerData system, and click the Delete button. A Delete System dialog box is displayed, click Yes.

  1. In Oracle JDeveloper, click Create System/Group icon shown in Figure 5-11.

    Figure 5-11 The Create System/Group Icon

    Description of Figure 5-11 follows
    Description of "Figure 5-11 The Create System/Group Icon"

    The Create ESB System or Service Group dialog box is displayed, as shown in Figure 5-12.

    Figure 5-12 The Create ESB System Or Service Group Dialog Box

    Description of Figure 5-12 follows
    Description of "Figure 5-12 The Create ESB System Or Service Group Dialog Box"

  2. Select System.

  3. In the Name field, enter CustomerData.

  4. Click OK.

Creating an Inbound File Adapter Service – CustIn

Using Oracle JDeveloper, create an inbound file adapter service, named CustIn to read in text files. Follow these steps:

  1. From the Components Palette, select Adapter Services.

  2. Select File Adapter and drag it to the design area.

    The Create File Adapter Service dialog box is displayed.

  3. In the Name box, enter CustIn.

  4. If CustomerData is not appearing in the System/Group box, then perform the following:

    1. Click Browse.

    2. Select ESB, Systems/Groups in project, CustomerData.

    3. Click OK.

  5. In the Adapter Service WSDL section, click the Configure Adapter Service Wsdl icon, shown in Figure 5-13.

    Figure 5-13 Adapter Configuration Wizard Icon

    Description of Figure 5-13 follows
    Description of "Figure 5-13 Adapter Configuration Wizard Icon"

    The Adapter Configuration Wizard Welcome page is displayed.

  6. In the Welcome page, click Next.

    The Service Name page is displayed.

  7. Click Next.

    The Operation page is displayed.

  8. In the Operation Type field, select Read File.

  9. In the Operation Name field, replace Read with ReadCustomerData, as shown in Figure 5-14.

    Figure 5-14 The Operation Page

    Description of Figure 5-14 follows
    Description of "Figure 5-14 The Operation Page"

  10. Click Next. The File Directories page is displayed.

  11. In the Directory for Incoming Files (physical path) field, enter C:\Customer\In, and then click Next.

    The File Filtering page is displayed.

  12. In the Include Files with Name Pattern field, enter *.xml, and then click Next.

    The File Polling page is displayed.

  13. Change the Polling Frequency field value to 1 seconds, and then click Next.

    The Messages page is displayed.

  14. Click Browse.

    The Type Chooser dialog box is displayed.

  15. Expand the navigation tree to Type Explorer\Project Schema Files\LegacyCustomer.xsd and then select CustomerData, as shown in Figure 5-15, and then click OK.

    Figure 5-15 Type Chooser - CustomerData

    Description of Figure 5-15 follows
    Description of "Figure 5-15 Type Chooser - CustomerData"

    The Adapter Configuration wizard appears as shown in Figure 5-16.

    Figure 5-16 Adapter Configuration Wizard – Messages page

    Description of Figure 5-16 follows
    Description of "Figure 5-16 Adapter Configuration Wizard – Messages page"

  16. Click Next.

    The Finish page is displayed.

  17. Click Finish. The Create File Adapter Service dialog box is displayed with CustIn.wsdl appearing in the WSDL File field.

  18. Click OK.

    The CustIn_RS routing service is created along with the CustIn adapter service.

  19. From the File menu, click Save.

Creating an Outbound Database Adapter Service – CustDBOut

Create an outbound database adapter service, named CustDBOut, to write messages to the Oracle Database Lite database, as follows:

Step 1 Begin the Adapter Configuration Wizard

Follow these steps to create an outbound database adapter service:

  1. From the Components Palette, select Adapter Services.

  2. Select Database Adapter and drag it to the design area. The Create Database Adapter Service dialog box is displayed.

  3. In the Name field, enter CustDBOut.

  4. If CustomerData is not appearing in the System/Group box, then perform the following:

    1. Click Browse.

    2. Select ESB, Systems/Groups in project, CustomerData.

    3. Click OK.

  5. In the Adapter Service WSDL section, click the Configure adapter service wsdl icon shown in Figure 5-13. The Adapter Configuration Wizard Welcome page is displayed.

  6. Click Next. The Service Name page is displayed.

  7. Click Next. The Service Connection page is displayed.

  8. Click New. The Create Database Connection Welcome page is displayed.

Step 2 Begin the Create Database Connection Wizard

Follow these steps to create a database connection:

  1. In the Create Database Connection Welcome page, click Next. The Create Database Connection Type page is displayed.

  2. Enter Olite in the Connection Name field and select Oracle Lite from the Connection Type list, as shown in Figure 5-17.

    Figure 5-17 The Create Database Connection Type Page

    Description of Figure 5-17 follows
    Description of "Figure 5-17 The Create Database Connection Type Page"

  3. Click Next. The Create Database Connection Authentication page is displayed.

  4. Specify field values as described in the following list, and click Next.

    • Username: System

    • Password: any

    The Create Database Connection page is displayed, as shown in Figure 5-18.

    Figure 5-18 The Create Database Connection Authentication Page

    Description of Figure 5-18 follows
    Description of "Figure 5-18 The Create Database Connection Authentication Page"

  5. Click Next. The Create Database Connection page is displayed, as shown in Figure 5-19.

    Figure 5-19 The Create Database Connection Page

    Description of Figure 5-19 follows
    Description of "Figure 5-19 The Create Database Connection Page"

  6. Select Type 4 Driver from the Driver list, and click the Browse button next to the Library field. A Select Library dialog box is displayed, as shown in Figure 5-20.

    Figure 5-20 The Select Library Dialog Box

    Description of Figure 5-20 follows
    Description of "Figure 5-20 The Select Library Dialog Box"

  7. Click New. The Create Library dialog box is displayed, as shown in Figure 5-21.

    Figure 5-21 The Create Library Dialog Box

    Description of Figure 5-21 follows
    Description of "Figure 5-21 The Create Library Dialog Box"

  8. Click the Add Entry button. The Select Path Entry dialog box is displayed, as shown in Figure 5-22.

    Figure 5-22 The Select Path Entry Dialog Box

    Description of Figure 5-22 follows
    Description of "Figure 5-22 The Select Path Entry Dialog Box"

  9. Navigate to the Oracle_Home/integration/esb/lib/olite40.jar directory, as shown in Figure 5-22., where Oracle_Home is the directory specification for the Oracle home where you installed Oracle Enterprise Service Bus.

  10. Click Select. The Select Path Entry dialog box closes and the Library Name field contains the value Olite40.jar in the Create Library dialog box, as shown in Figure 5-23.

    Figure 5-23 The Create Library Dialog Box - Olite40.jar

    Description of Figure 5-23 follows
    Description of "Figure 5-23 The Create Library Dialog Box - Olite40.jar"

  11. Click OK. The Select Library dialog box is displayed with Olite40.jar in the Library Name field, as shown in Figure 5-24.

    Figure 5-24 The Select Library Dialog Box - Olite40.jar

    Description of Figure 5-24 follows
    Description of "Figure 5-24 The Select Library Dialog Box - Olite40.jar"

  12. Click OK. The Create Database Connection page is displayed with the Library field populated with Olite40.jar, as shown in Figure 5-25.

    Figure 5-25 The Create Database Connection Page

    Description of Figure 5-25 follows
    Description of "Figure 5-25 The Create Database Connection Page"

  13. Enter the hostname, port, and SID details, as mentioned in the following list:

    • Host Name: localhost

    • JDBC Port: 1531

    • SID: OraESB

    The Create Database Connection page is displayed, as shown in Figure 5-26.

    Figure 5-26 The Create Database Connection Page

    Description of Figure 5-26 follows
    Description of "Figure 5-26 The Create Database Connection Page"

  14. Click Next. The Create Database Connection Test page is displayed.

  15. Click Test Connection. The Status field contains the string: Success!, as shown in Figure 5-27.

    Figure 5-27 The Create Database Connection Test Page

    Description of Figure 5-27 follows
    Description of "Figure 5-27 The Create Database Connection Test Page"

  16. Click Finish. The Service Connection page is displayed, as shown in Figure 5-28, where the Connection field contains Olite and JNDI Name contains eis/DB/Olite.

    Figure 5-28 The Service Connection Page

    Description of Figure 5-28 follows
    Description of "Figure 5-28 The Service Connection Page"

You have successfully created a new database connection called Olite, which is required to configure the database adapter.

Step 3 Complete the Adapter Configuration Wizard

Follow these steps to complete creating the outbound database adapter service:

Note:

Once you have created a database connection, the Adapter Configuration wizard continues, which enables you to create the outbound database adapter service.
  1. In the Service Connection page, as shown in Figure 5-28, click Next.

    The Operation Type page is displayed.

  2. In the Operation Type page, follow these steps:

    1. Select Perform an Operation on a Table.

    2. Deselect Insert Only, Update Only, Delete, and Select as shown in Figure 5-29.

      Figure 5-29 Adapter Configuration Wizard – Operation Type

      Description of Figure 5-29 follows
      Description of "Figure 5-29 Adapter Configuration Wizard – Operation Type"

    3. Click Next.

      The Select Table page is displayed.

  3. In the Select Table page, follow these steps:

    1. Click Import Tables.

      The Import Tables dialog box is displayed.

    2. Select Auto-Query.

      The Import Tables dialog box refreshes and appears as shown in Figure 5-30.

      Figure 5-30 Import Tables Dialog Box

      Description of Figure 5-30 follows
      Description of "Figure 5-30 Import Tables Dialog Box"

    3. In the Available box, select CUSTOMER_ DATA and then click the right arrow button.

      The CUSTOMER_DATA is added to the Selected box.

    4. Click OK. The Select Table page is displayed, as shown in Figure 5-31.

      Figure 5-31 Select Table – SYSTEM.CUSTOMER_DATA

      Description of Figure 5-31 follows
      Description of "Figure 5-31 Select Table – SYSTEM.CUSTOMER_DATA"

    5. Click Next.

      The Define Primary Keys page is displayed.

  4. In the Define Primary Keys page, select CUSTOMERID, and then click Next.

    The Relationships page is displayed.

  5. Click Finish. The Create Database Adapter Service dialog box is displayed with CustDBOut.wsdl appearing in the WSDL File field.

  6. Click OK. You have successfully created the outbound adapter service named CustDBOut.

  7. From the File menu, click Save.

Creating an Outbound JMS Adapter Service – CRMOut

Create an outbound JMS adapter service, named CRMOut, to write messages to the Customer Relationship Management application, as follows:

  1. From the Components Palette, select Adapter Services.

  2. Select JMS Adapter and drag it to the design area.

    The Create JMS Adapter Service dialog box is displayed.

  3. In the Name box, enter CRMOut.

  4. If CustomerData is not appearing in the System/Group box, then perform the following:

    1. Click Browse.

    2. Select ESB, Systems/Groups in project, CustomerData.

    3. Click OK.

  5. In the Adapter Service WSDL section, click the Configure Adapter Service Wsdl icon.

    The Adapter Configuration Wizard Welcome page is displayed.

  6. Click Next. The Adapter Configuration Wizard Service Name page is displayed.

  7. Click Next. The JMS Provider page is displayed.

  8. Select Oracle Enterprise Messaging Service (OEMS) and then select Memory/File as shown in Figure 5-32.

    Figure 5-32 JMS Provider Page

    Description of Figure 5-32 follows
    Description of "Figure 5-32 JMS Provider Page"

  9. Click Next in the JMS Provider page.

    The Service Connection page is displayed.

  10. Select LocalApplicationServer from the Connections list, and click Next.

    The Operation page is displayed.

  11. In the Operation Type field, select Produce Message, and then click Next.

    The Produce Operation Parameters page is displayed.

  12. Click the Browse button next to the Destination Name field.

    The Select Destination dialog box is displayed.

  13. Select All Types, jms, demoTopic(topic), as shown in Figure 5-33, and click OK.

    Figure 5-33 Select Destination dialog box

    Description of Figure 5-33 follows
    Description of "Figure 5-33 Select Destination dialog box"

    The Produce Operation Parameters page is displayed with all the fields populated, as shown in Figure 5-34.

    Figure 5-34 The Produce Operation Parameters Page

    Description of Figure 5-34 follows
    Description of "Figure 5-34 The Produce Operation Parameters Page"

  14. Click Next.

    The Messages page is displayed.

  15. In the Messages page, follow these steps:

    1. Click Browse.

      The Type Chooser dialog box is displayed.

    2. In the Type Chooser dialog box, expand the navigation tree to Type Explorer/Project Schema Files/CommonCustomer.xsd, and click Customer, as shown in Figure 5-35.

      Figure 5-35 Type Chooser – CommonCustomer.xsd

      Description of Figure 5-35 follows
      Description of "Figure 5-35 Type Chooser – CommonCustomer.xsd"

    3. Click OK.

      The Messages page appears with the Schema Location field populated with the location of the schema file, as shown in Figure 5-36.

      Figure 5-36 Adapter Configuration Wizard – Messages Page CRMOut Adapter Service

      Description of Figure 5-36 follows
      Description of "Figure 5-36 Adapter Configuration Wizard – Messages Page CRMOut Adapter Service"

    4. Click Next.

      The Finish page is displayed.

  16. Click Finish. The Create JMS Adapter Service dialog box is displayed with CRMOut.wsdl file appearing in the WSDL File field.

  17. Click OK. You have successfully created the outbound service named CRMOut.

  18. From the File menu, click Save.

Creating the Outbound Routing Service – CustOut_RS

The outbound routing service, CustOut_RS specifies the route messages will take to arrive at their target destinations.

To create the CustOut_RS routing service, follow these steps using the Oracle JDeveloper:

  1. From the Component Palette in the upper right section of Oracle JDeveloper, select ESB Services.

  2. Drag the Routing Service from the Components Palette to the design view.

    The Create Routing Service dialog box is displayed.

  3. In the Name field, enter CustOut_RS.

  4. If CustomerData is not appearing in the System/Group box, then perform the following:

    1. Click Browse.

    2. Select ESB, Systems/Groups in project, CustomerData.

    3. Click OK.

  5. Select Generate WSDL From Schemas.

  6. Click Browse.

    The Type Chooser dialog box is displayed.

  7. In the Type Chooser navigator, expand Type Explorer, Project Schema Files, CommonCustomer.xsd, and then select Customer.

  8. Click OK. The Create Routing Service dialog box is displayed with the Schema Location field populated with the URL for the schema file.

  9. In the Operation Name box, enter MapCustomerData. The Create Routing Service dialog box is displayed, as shown in Figure 5-37.

    Figure 5-37 Create Routing Service Dialog Box

    Description of Figure 5-37 follows
    Description of "Figure 5-37 Create Routing Service Dialog Box"

  10. Click OK. The CustOut_RS routing service is created, as shown in Figure 5-38.

    Figure 5-38 The Oracle JDeveloper 10g - CustOut_RS Created

    Description of Figure 5-38 follows
    Description of "Figure 5-38 The Oracle JDeveloper 10g - CustOut_RS Created"

Specifying Routing Rules from CustIn_RS to CustOut_RS

Follow these steps to specify the path that messages take from the CustIn_RS routing service to the CustOut_RS routing service:

  1. Double-click CustIn_RS.

  2. Click the plus (+) button to the left of Routing Rules. The Routing Rules panel is displayed.

  3. Click the plus (+) button at the extreme right-hand side of ReadCustomerData.

    The Browse Target Service Operation dialog box is displayed.

  4. Select ESB, Services in project, CustomerData, CustOut_RS, MapCustomerData.

  5. Click OK.

    The Routing Rules panel is displayed, as shown in Figure 5-39.

    Figure 5-39 The Routing Rules Panel - MapCustomerData Added

    Description of Figure 5-39 follows
    Description of "Figure 5-39 The Routing Rules Panel - MapCustomerData Added"

  6. Click the icon next to the <<Transformation Map>> box.

    The Request Transformation Map dialog box is displayed, as shown in Figure 5-40.

    Figure 5-40 Request Transformation Map

    Description of Figure 5-40 follows
    Description of "Figure 5-40 Request Transformation Map"

  7. Select Create New Mapper File and click OK.

    A CustomerData_To_Customer.xsl tab is added to the Oracle JDeveloper console, as shown in Figure 5-41. This tab enables you to graphically create a document transformation file to convert the structure of the file data to a canonical data structure.

    Figure 5-41 CustomerData_To_Customer.xsl Tab – Initially

    Description of Figure 5-41 follows
    Description of "Figure 5-41 CustomerData_To_Customer.xsl Tab – Initially"

  8. Drag and drop the imp1:CustomerData source element to inp1:Customer target element.

    The Auto Map Preferences dialog box is displayed.

  9. From the During Auto Map options, deselect Match Elements Considering their Ancestor Names.

    The Auto Map Preferences dialog box is shown in Figure 5-42.

    Figure 5-42 Auto Map Preferences Dialog Box

    Description of Figure 5-42 follows
    Description of "Figure 5-42 Auto Map Preferences Dialog Box"

  10. Click OK.

    The CustomerData_To_Customer.xsl tab appears as shown in Figure 5-43.

    As you can see, multiple links are created automatically. If you had not deselected the Match Elements Considering their Ancestor Names option, you would have to drag and drop each of the source elements to the target elements, one-by-one.

    Figure 5-43 CustomerData_To_Customer.xsl Tab – Auto Mapped Connections

    Description of Figure 5-43 follows
    Description of "Figure 5-43 CustomerData_To_Customer.xsl Tab – Auto Mapped Connections"

  11. Expand the inp1:Customer/Profile target element.

  12. Drag and drop the imp1:CustomerData/CampaignRating source element to the inp1:Customer/Profile/ActivityRating target element.

    The CustomerData_To_Customer.xsl tab appears as shown in Figure 5-44.

    Figure 5-44 CustomerData_CustIn_RS.xsl Tab – All Connections

    Description of Figure 5-44 follows
    Description of "Figure 5-44 CustomerData_CustIn_RS.xsl Tab – All Connections"

  13. From the File menu, click Save.

Specifying Routing Rules from CustOut_RS to CustDBOut

Follow these steps to specify the path that messages take from the CustOut_RS routing service to the CustDBOut adapter service:

  1. Click the CustomerData.esb tab on the Oracle JDeveloper window.

  2. Double-click CustOut_RS. The Routing Service panel is displayed.

  3. Click the Plus (+) button to the left of Routing Rules. The Routing Rules panel is displayed.

  4. Click the Plus(+) button at the extreme right-hand side of MapCustomerData.

    The Browse Target Service Operation dialog box is displayed.

  5. In the ESB Services navigator, expand ESB/Services in project/CustomerData/CustDBOut/write.

  6. Click OK. The Routing Rules panel appears as shown in Figure 5-45.

    Figure 5-45 The Routing Rule Panel

    Description of Figure 5-45 follows
    Description of "Figure 5-45 The Routing Rule Panel"

  7. Click the icon next to the <<Transformation Map>> box. The Request Transformation Map dialog box is displayed as shown in Figure 5-40.

  8. Select Create New Mapper File, and click OK.

    A Customer_To_CustomerDataCollection.xsl tab is added to Oracle JDeveloper, as shown in Figure 5-46.

    Figure 5-46 Customer_To_CustomerDataCollection.xsl Tab – Initially

    Description of Figure 5-46 follows
    Description of "Figure 5-46 Customer_To_CustomerDataCollection.xsl Tab – Initially"

  9. Drag and drop the inp1:Customer source element to the CustomerData target element.

    The Auto Map Preferences dialog box is displayed.

  10. From the During Auto Map options, ensure the Match Elements Considering their Ancestor Names is deselected.

    The Auto Map Preferences dialog box should appear as shown in Figure 5-42.

  11. Click OK. The Customer_To_CustomerDataCollection.xsl tab appears as shown in Figure 5-47.

  12. Figure 5-47 Customer_To_CustomerDataCollectionTab – All Connections

    Description of Figure 5-47 follows
    Description of "Figure 5-47 Customer_To_CustomerDataCollectionTab – All Connections"

  13. You can expand the CustomerData target element to view the auto mappings.

  14. From the File menu, click Save.

Specifying Routing Rules from CustOut_RS to CRMOut

Follow these steps to specify the path that messages take from the CustOut_RS routing service to the CRMOut adapter service:

  1. Click the CustomerData.esb in the Oracle JDeveloper window.

  2. Double-click CustOut_RS routing service.

  3. Click the Plus (+) button to the left of Routing Rules. The Routing Rules panel is displayed.

  4. Click the Plus (+) button at the extreme right-hand side in the Rules region.

    The Browse Target Service Operation dialog box is displayed.

  5. Expand ESB/Services in Project/CustomerData/CRMOut, select Produce_Message, as shown in Figure 5-48.

    Figure 5-48 Browse Target Service Operation - Produce Message

    Description of Figure 5-48 follows
    Description of "Figure 5-48 Browse Target Service Operation - Produce Message"

  6. Click OK. The Routing Rules panel is displayed.

  7. In the Applications Navigator, select Applications/ESBSamples/CustomerData/Resources and then double-click CustomerData.esb.

    The CustomerData.esb Design tab now appears as shown in Figure 5-49.

    Figure 5-49 The CustomerData.esb Design Tab

    Description of Figure 5-49 follows
    Description of "Figure 5-49 The CustomerData.esb Design Tab"

  8. From the File menu, click Save.

Registering Services with Oracle Enterprise Service Bus and Viewing in the ESB Control Console

Before you can view the services you have created with Oracle JDeveloper ESB Designer in the Oracle Enterprise Service Bus Control Console, you must register them with Oracle Enterprise Service Bus Server.

  1. In the Applications navigator, right-click CustomerData, choose Register with ESB, and then click LocalIntegrationServer.

    A message displays to indicate that the following services were successfully registered as shown in Figure 5-50:

    • CustomerData created

    • CustomerData.CRMOut created

    • CustomerData.CustDBOut created

    • CustomerData.CustOut_RS created

    • CustomerData.CustIn_RS created

    • CustomerData.CustIn created

    Figure 5-50 ESB Registration Summary

    Description of Figure 5-50 follows
    Description of "Figure 5-50 ESB Registration Summary"

  2. Click OK.

  3. View the Oracle Enterprise Service Bus configuration in the Oracle Enterprise Service Bus Control Console, as follows:

    • If the Oracle Enterprise Service Bus Control Console is currently open:

      Click the refresh button and then click CustOut_RS.

    • If the Oracle Enterprise Service Bus Control Console is not open:

      Select Start, All Programs, Oracle - Oracle_Home, Oracle ESB, ESB Control, to open the Oracle Enterprise Service Bus Control Console.

    The Diagram tab is displayed, as shown in Figure 5-51.

Figure 5-51 ESB Control Console – After Oracle JDeveloper Configuration

Description of Figure 5-51 follows
Description of "Figure 5-51 ESB Control Console – After Oracle JDeveloper Configuration"

Adding an Expression Filter to the CustOut_RS Routing Service

The following steps describe how to add a filter to the CustOut_RS routing service so that only messages for customers with an address in the United States are sent to the CustDBOut adapter service for updating the customer database. First you need to determine the namespace for the service, then you use that namespace when specifying the filter expression, as follows:

Using the Oracle JDeveloper, follow these steps:

  1. Click the CustomerData.esb tab in the Oracle JDeveloper window.

  2. Double-click CustOut_RS.

  3. Click the filter icon.

    The Expression Builder is displayed.

  4. In the WSDL Message box, expand Customer_request, Customer, inp1:Customer, Address and then select Country.

  5. Click Insert Into Expression.

  6. Specify the country as "US" as follows:

    /inp1:Customer/Address/Country='US'
    
    
  7. Click OK.

  8. From the File menu, click Save.

  9. Register the CustomerData service as shown in section "Registering Services with Oracle Enterprise Service Bus and Viewing in the ESB Control Console".

    A message is displayed to indicate that the following services were successfully registered:

    CustomerData.CustOut_RS updated

  10. Refresh the view in the Oracle Enterprise Service Bus Control Console.

  11. Select the CustOut_RS service.

  12. Click the Diagram tab.

    A filter icon appears next to the line representing the link between the CustOut_RS routing service and the CustDBOut adapter service, as shown in Figure 5-52.

    Figure 5-52 Oracle Enterprise Service Bus Control Console – CustOut_RS Filter

    Description of Figure 5-52 follows
    Description of "Figure 5-52 Oracle Enterprise Service Bus Control Console – CustOut_RS Filter"

    Note:

    For instruction on running the tutorial, refer to "Step-By-Step Instructions for Running the Tutorial".

Demonstrations and Tutorials

A series of demonstrations, activity and conceptual reference materials, and tutorials are also provided to increase conceptual knowledge and hands-on experience with Oracle Enterprise Service Bus. These materials are installed with Oracle Enterprise Service Bus in the Oracle_Home\integration\esb\samples directory.

In addition, you can find updated information about Oracle Enterprise Service Bus at following location:

http://www.oracle.com/appserver/esb.html