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 /wiki/spaces/EI6xx/pages/49614279 tutorial and Sending a Simple Message to a Service 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,
|
Let's get started!
Table of Contents |
---|
...
Open the
pom.xml
file under the SampleServicesCompositeApplication project from the project explorer.See that the newly added 'HospitalRoutingSeq' artifact is listed under Dependencies. Select this artifact to add it to the composite application project.
Save your changes.
Open the Getting Started view and click Miscellaneous →Add New Server to open the New Server dialog.
- In the New Server dialog, expand the WSO2 folder and select the version of your server.
- Click Next. In the CARBON_HOME field, provide the path to your product's home directory, and then click Next again.
Review the default port details for your server and click Next.
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.
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.
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:
- Download the JAR file of the back-end service.
Open a terminal and navigate to the location where your saved the back-end service.
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
...