Using the Deploy Applications tool, it is possible to run Java applications on IBM Cloud.
First, you should have defined a Cloud Foundry app using the IBM Cloud console. See Deploying to IBM Cloud prerequisites for detailed information on this topic.
- Before making a deployment, you must configure your Data store to connect to the database. See Configuring a GeneXus environment to be deployed on IBM Cloud.
- Run a Build All.
- Go to the Build menu and select the Deploy Application option.
- In the Deployment screen:
- Select the Main objects to be included in the deployment.
- In Target, select the option "IBM Cloud (Cloud Foundry)" (*).
- Set the following properties as indicated below:
- User: Enter your IBM Cloud account.
- Password: Enter your password.
- Organization: Associated to the Cloud account.
- Space: Defined for the IBM Cloud organization.
- Application: The Cloud Foundry application previously defined (step 1)
After selecting the main objects and configuring the necessary properties for the automatic deployment, press the Deploy button. It will build the WAR package, as well as upload and deploy it in IBM Cloud.
You'll see an output similar to the following:
API endpoint: https://api.ng.bluemix.net (API version: 2.54.0)
cf push SummerReading -b liberty-for-java -p C:\Models\SummerReading2\SummerReading2\Deploy\JavaMySQL013\Bluemix\20160826102928\..\SummerReading2_20160826102928.war
Updating app SummerReading in org genexus.com / space GENEXUS-INVESTIGACION as email@example.com...
Stopping app SummerReading in org genexus.com / space GENEXUS-INVESTIGACION as firstname.lastname@example.org...
Starting app SummerReading in org genexus.com / space GENEXUS-INVESTIGACION as email@example.com...
-----> Downloaded app package (21M)
-----> Downloaded app buildpack cache (336K)
You can check the Application URL, Status and Configuration from the IBM Cloud console.
For example, the URL could be: https://summerreading.mybluemix.net/servlet/com.summerreading2.patternconsole.mainconsolepanel.
If you've selected the "Only Package" checkbox, the war is copied to the local file system, from where you can deploy it manually to IBM Cloud.
Read here for monitoring a java application on IBM Cloud, with JMX.
(*) IBM Cloud was formerly known as IBM Bluemix