Deploying SOA Composite Applications to Oracle SOA Suite Cloud Service


Options




Before You Begin

Purpose

This tutorial shows you how to deploy a composite application as a SOA archive(SAR) file to Oracle SOA Suite Cloud Service by using the Oracle Fusion Middleware Control console.

Time to Complete

45 minutes

Background

Oracle SOA Suite Cloud Service provides a complete set of service infrastructure components for designing, managing, and deploying composite and service bus applications to the cloud.

You can save time, money, and work more efficiently by using the wide variety of features in Oracle SOA Suite Cloud Service to:

  • Design SOA composite applications.
  • Create test environments for all your applications.
  • Monitor and manage your application environment.

Using this tutorial, you can learn how to test your SOA composite applications locally in your SOA Quick Start environment and then deploy them to Oracle SOA Suite Cloud Service. Because this cloud service uses the same Oracle SOA Suite software that you use for your on-premises applications, you can use the same tools in the cloud.

What Do You Need?

Deploying and Testing a Composite Application in the Local Environment

Downloading a SOA Sample Application

  1. Open a terminal window. Create the mywork directory by executing the following command: mkdir mywork

  2. Download the helloWorld.zip file, which contains the SOA sample application, into the mywork directory.

Importing a SOA Project into Oracle JDeveloper

  1. Go to the mywork directory and unzip the application using the following commands:

    Unzip application
    Description of this image

    Note: This tutorial was created in Linux. If you use a different operating system, then use another compression utility to unzip the application (WinRaR, 7-Zip, WinZip, and so on).

  2. Open Oracle JDeveloper 12c, click the Applications tab, and select Open Application.

    Open application menu
    Description of this image

    The Open Application(s) dialog box opens.

  3. In the Open Application(s) dialog box, go to mywork/SOACSdemo, select SOACSdemo.jws, and click Open.

    Open Application window
    Description of this image

Deploying a Composite Application to Oracle WebLogic Server

  1. In the Run menu, select Start Server Instance (IntegratedWebLogicServer), and wait for the server to start.

  2. On the Applications tab, right-click SayHello, select Deploy, and then select SayHello.

    Deploy
    Description of this image
  3. On the Deploy SayHello page, enter, select, or verify the following values on the specified pages, click Next on each page:

    • Deployment Action page: Select Deploy to Application Server.
    • Deploy Configuration page: For the New revision ID field, enter or verify 1.0, and select Overwrite any existing composites with the same revision ID.
    • Select Server page: Select IntegratedWebLogicServer.
    • SOA Servers page: Verify that the default server is running and selected.

    The Summary page appears. After you review your selections, click Finish.

    Summary
    Description of this image
  4. On the Deployment - Log tab, verify that the deployment is finished.

    Deployment Log
    Description of this image

Testing a Composite Application in the Local Environment

  1. In your Internet Explorer, Firefox, or Chrome browser, open Oracle Enterprise Manager. In the Login dialog box, enter the following values and then click Login:

    • URL: http://localhost:7101/em
    • User Name: Your Oracle Enterprise Manager username
    • Password: Your Oracle Enterprise Manager password
    SayHello
    Description of this image
  2. In the Target Navigation pane, expand SOA, soa-infra, and default, and select SayHello [1.0]. In the right pane, click Test.

    Oracle headquarters buildings
    Description of this image
  3. On the Test Web Service page, click the Request tab, expand payload, enter your name in the input field, and then click Test Web Service.

    Test Web Service
    Description of this image
  4. Click the Response tab, and verify that the response displays your name.

    Response
    Description of this image

Deploying a Composite Application to a SAR File

  1. On the Applications tab, right-click SayHello, select Deploy, and then select SayHello.

    Deploy
    Description of this image
  2. On the Deploy SayHello page, enter or select the following values on the specified pages, click Next on each page:

    • Deployment Action page: Select Generate SAR file.
    • Deploy Configuration page: For the New revision ID field, enter or verify 1.0.

    The Summary page appears. After you review your selections, click Finish.

    Summary
    Description of this image
  3. On the Deployment - Log tab, verify that the deployment is finished.

    Deployment Log
    Description of this image

Deploying and Testing a Composite Application in Oracle SOA Suite Cloud Service

Deploying a SAR File to Oracle SOA Suite Cloud Service

  1. Open the Oracle SOA Suite Cloud Service Console and Menu Menu Icon  to select the service instance that you want to manage. Then, click Open Fusion Middleware Control Console.

    SayHello
    Description of this image
  2. Enter the user name and password that you set when you created your instance.

    SayHello
    Description of this image
  3. In the Target Navigation pane, expand SOA, right-click soa-infra, expand SOA Deployment, and click Deploy.

    Target Navidation
    Description of this image

    The Deploy SOA Composite page appears.

  4. In the Deploy SOA Composite page, click Browse.

    Select Archive
    Description of this image
  5. In the File Upload dialog box, go to mywork/SOACSdemo/SayHello/deploy, select the sca_SayHello_rev1.0.jar file, and click Open.

    Workspace
    Description of this image
  6. In the Select Archive page, click Next.

    Select Archive
    Description of this image
  7. In the Select Target page, select the default SOA partition, and click Next.

    Select Target
    Description of this image
  8. In the Confirmation page, click Deploy.

    Deploy SOA Composite
    Description of this image

    The summary page appears, click Close.

    Summary
    Description of this image

Testing an Application in Oracle SOA Suite Cloud Service

  1. Open the Fusion Middleware Control Console. In the Target Navigation pane, expand SOA, soa-infra, and default, and then select SayHello [1.0]. In the right pane, click Test.

    Test Cloud Service
    Description of this image
  2. On the Test Web Service page, click the Request tab, expand payload, enter your name in the text field, and then click Test Web Service.

    Test Web Service
    Description of this image
  3. Click the Response tab, and verify that the response displays your name.

    Response
    Description of this image

Monitoring a Composite Application in Oracle SOA Suite Cloud Service

  1. In the Target Navigation pane from your Oracle SOA Suite Cloud Service, expand SOA, soa-infra, and default, and select SayHello [1.0]. In the right pane, click the Flow Instances tab.

    Test Cloud Service
    Description of this image
  2. On the Flow Instances tab, click Recent Instances.

    Test Web Service
    Description of this image
  3. On the Search Results table, click the number under the Flow ID column.

    Flow ID
    Description of this image

    The Flow Trace page appears.

  4. On the Flow Trace page, click MakeGreeting.

    MakeGreeting
    Description of this image
  5. On the Instance of MakeGreeting page, under replyOutput, click View Payload.

    Audit Trail
    Description of this image

    The Payload for Activity: replyOutput dialog box appears.

    XML content
    Description of this image

    Confirm that the payload message contains the same result displayed in this dialog box when you test your application.

Want to Learn More?

Credits

  • Lead Curriculum Developer: Armando Hernandez

  • Other Contributors: Ron Pinkerton, Mary Peek