Using the Deploy Applications tool, it is possible to run Java applications on IBM Bluemix cloud.
First, you should have defined a Cloud Foundry app using the Bluemix console. See Deploying to IBM Bluemix 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 Bluemix.
- 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 Bluemix".
- Set the following properties as indicated below:
- User: Enter your IBM Bluemix account.
- Password: Enter your password.
- Organization: Associated to the Bluemix account.
- Space: Defined for the Bluemix 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 Bluemix.
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 Bluemix 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 Bluemix.
Read here for monitoring a java application on Bluemix, with JMX.