How to deploy an application to IBM Bluemix

Official Content
This documentation is valid for:

Using the Deploy Applications tool, it is possible to run Java applications on IBM Bluemix cloud.

Prerequisites:

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.

Steps to deploy to Bluemix

  1. 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.
  2. Run a Build All.
  3. Go to the Build menu and select the Deploy Application option.
    i2016_08_26_14_22_241_png
  4. In the Deployment screen:
    1. Select the Main objects to be included in the deployment.
      i2016_08_26_14_24_222_png
    2. In Target, select the option "IBM Bluemix".
    3. 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)
  User:           sjuarez@genexus.com
  Org:            genexus.com
  Space:        GENEXUS-INVESTIGACION
Deploy:
  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 sjuarez@genexus.com...
  OK
  
  Uploading SummerReading...

  Done uploading
  
  Stopping app SummerReading in org genexus.com / space GENEXUS-INVESTIGACION as sjuarez@genexus.com...
  OK
  
  Starting app SummerReading in org genexus.com / space GENEXUS-INVESTIGACION as sjuarez@genexus.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.

i2016_08_26_14_30_594_png

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.

Additional information:

Read here for monitoring a java application on Bluemix, with JMX.

 



 


Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.