Let's create an application in the Integration Cloud that connects to the database that you created earlier.
- Log Sign in to the WSO2 Cloud and go to the Integration Cloud and click CREATE APPLICATION.
Click Java Microservice from under Services tab. Then, click Java Microservices.
Select the Local File System option and click Continue.
Enter the following details in the form, scroll down and click Create.
- Application Name: API Producer
- JAR file: Download this sample Java Microservices application and upload it.
Under Advanced Settings...
Field Value Runtime
OracleJDK 8 + WSO2 MSF4J 1.0.0 - Deprecated
This sample was written for WSO2 MSF4J version 1.0.0.
Tip: Be sure to always select the same deployment environment that you used to develop the sample. If not, the sample might not work properly.
Scroll down to the Environment Variables section and add the following to read and write data from/to the database that you created earlier:
Type " database: " -> select the database -> select URL and click Add.
Type " database: " -> select the database -> select Users -> Select the username and click Add.
<Give your database password>
Once the application is created, the application's homepage opens. Copy the application's URL.