Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this sample scenario, you will use a Sequence Template and reuse it in multiple places of the medation flow. You can reuse the mediation flow that was defined in the Sending a Simple Message to a Service Using the ESB Profile tutorial and tutorial and then replace its sections with the sequence template. See Creating Templates for details on how to work with templates using WSO2 Integration Studio.


Tip

Before you begin,

Install Oracle Java SE Development Kit (JDK) version 1.8.* and set the JAVA_HOME environment variable.

  1. Download the product installer from installer from here, and run the installer.
    Insert excerpt
    Installing the Product
    Installing the Product
    nopaneltrue
  2. Select and download the relevant WSO2 Integration Studio ZIP file based on your operating system from here and then extract the ZIP file.
    The path to this folder will be referred to as <EI_TOOLING> throughout this tutorial.

    Note

    Getting an error message? See the troubleshooting tips given under Installing WSO2 Integration Studio.

  3. If you did not try the the Exposing Several Services as a Single Service tutorial yet, open the tutorial yet,
    1. Download the pre-packaged project that contains the configurations of the Exposing Several Services as a Single Service tutorial.
    2. Open WSO2 Integration Studio, click File, and
    then click 
    1. click Import.
    2. Next, expand the WSO2 category and select Existing WSO2 Projects into workspace
     under the WSO2 category
    1. , click Next, and upload
    the pre-packaged project. This contains the configurations of the Exposing Several Services as a Single Service tutorial so that you do not have to repeat those steps.Download the MSF4J service from here and copy the JAR file to <EI_HOME>/wso2/msf4j/deployment/microservices folder. The back-end service is now deployed in the MSF4J profile of WSO2 EI.
    1. the project file.

Let's get started!
Table of Contents

...

  1. Open the pom.xml file under the SampleServicesCompositeApplication project from the project explorer. 

  2. See that the newly added 'HospitalRoutingSeq' artifact is listed under Dependencies. Select this artifact to add it to the composite application project.

    Screen Shot 2016-10-14 at 10.38.42 AM.png

  3. Save your changes.

  4. Open the Getting Started view and click Miscellaneous →Add New Server to open the New Server dialog. 

  5. In the New Server dialog, expand the WSO2 folder and select the version of your server.
  6. Click Next. In the CARBON_HOME field, provide the path to your product's home directory, and then click Next again.
  7. Review the default port details for your server and click Next.

  8. To deploy the CApp project to your server, select the SampleServicesCompositeApplication project from the list, click Add to move it into the configured list, and then click Finish.

  9. On the Servers tab, note that the server is currently stopped. Click the 'play' icon on the tool bar. If prompted to save changes to any of the artifact files you created earlier, click Yes

  10. As the server starts, the Console tab appears. Note messages indicating that the composite app was successfully deployed.

Starting the back-end service

Download and start the back-end service:

  1. Download the JAR file of the back-end service.
  2. Open a terminal and navigate to the location where your saved the back-end service.

  3. Execute the following command to start the service:

    Code Block
    java -jar Hospital-Service-JDK11-2.0.0.jar

The Healthcare service is now active and you can start sending requests to the service.

Invoking the ESB sequence

...