How to host your Integration Solution in Cloud in under 5 minutes
By: Dinuksha Ishwari
Tags: Wso2 Ei, Cloud, Developer Studio, Integration, Wso2

A few years ago, communication between enterprise applications was a bowl of spaghetti in which a single change could impact both efficiency and productivity in an enterprise immensely. Over time, middleware has been improving this communication to make our lives much easier. As developers, we would want the least time spent on deployment so that we will have more time spent on developing the actual solution.

In an era where everything is in the cloud, it is always easier to maintain our integration solutions in the cloud too.

Typically, this would require us to first create our solution offline using different editors and then log in to the cloud and follow the deployment process. This becomes a nuisance when we do modifications often.

With WSO2 Integration Studio, the application can be created and deployed to the cloud instantly from the Integration Studio itself, with the user having zero or minimal interaction with the cloud.

This article is a step by step guide to hosting an integration solution application in the WSO2 Integration Cloud in under 5 minutes.

Pre-requisites:

Creating a new application

Step 1: Create an application

As soon as you start the WSO2 Integration Studio application, the ‘Getting Started’ page will be shown. Create a project using the ‘Hello World’ template named ‘HelloWorldApplication’.

Step 2: Modify the template.

The template can be modified according to your needs. For this example, we will modify the payload values.

Open HelloWorld.xml in HelloWorldApp (HelloWorldApp → src → main → synapse-config → proxy-services → HelloWorld.xml). Click on the Payload Factory icon. Update the payload in the Properties toolbar. For this sample, we will change is as {“data”: “HelloWorld”}.

Step 3: Deploy to integration cloud

Before you deploy to the cloud, you need to know the Organization ID for the next steps. To obtain the Organization ID — Login to the Integration Cloud (https://wso2.com/integration/cloud/) → Click on the icon tray at the top right corner → Select ‘Organization’ under ‘Manage your cloud’.

Now, we can move on to the deployment part.

Right click on the composite application → Select ‘Deploy to Integration Cloud’. Enter credentials for the WSO2 Integration Cloud.

Select the artifacts you want to deploy and provide the application details.

You can view the progress in the progress bar as below and you will be notified once it has been deployed along with the endpoints.

Creating a new version in an existing application

In order to create a new version in an application that is already in the cloud, the same steps should be followed as below.

Right click on the composite application → Select ‘Deploy to Integration Cloud’. Enter credentials for the WSO2 Integration Cloud.

3. Select the artifacts you want to deploy → Select ‘Create New Version’ option and fill other fields.

WSO2 Integration Studio further provides different other deployment options as well. You can even export the solution to a Docker image.

This wraps up creating and deploying a solution to the cloud through the WSO2 Integration Studio tool! Happy Integration… !