Ballerina is the premier programming language that allows you to connect apps and services to handle all types of integration scenarios using both textual and graphical syntaxes. Find out more about Ballerina at http://ballerinalang.org.
WSO2 Integration Cloud allows you to create a Ballerina service by uploading a Ballerina service archive (.bsz file), which is created by bundling one or more services together into a deployable archive.
To create other types of applications, see Create Different Types of Applications.
Let's get started!
- Log in to WSO2 Integration Cloud by going to http://wso2.com/cloud/, clicking the Sign In link and then selecting WSO2 Integration Cloud. If you are not registered yet, the UI guides you through the registration process.
- The Integration Cloud opens. Click CREATE APPLICATION.
- Click the Ballerina Service link under Integration.
- Select the Local File System option and click Continue.
- Enter the following information in the form that opens, scroll down and click Create.
- Application Name: SampleBallerina
Download the HelloBallerinaService.bsz to your machine and upload it.
- Select Alpine 3.4/Oracle JDK 1.8.0_112 for Container Specification for better performance. When you create applications from an archive file, be sure to select the runtime that is compatible with the environment in which your file was created.
- Once the application is created, its homepage opens. Copy the endpoint URL of the service.
You have now deployed a sample Ballerina program as a service, which is waiting for a request. Let's send it one.
- Add the context "/hello" at the end of the URL that you copied in the previous step and call it from your browser. In this example, the URL is
- Note that the service receives the request and executes its logic, printing "Hello, World!" on the command line:
You have deployed a Ballerina service in WSO2 Integration Cloud from a service archive file.