IBM Bluemix™ is a cloud platform that helps developers rapidly build,manage and run web and mobile applications. With IBM Bluemix™, developers can focus on building excellent user experiences with flexible compute options, choice of DevOps tooling, and a powerful set of IBM and third-party APIs and services.
Built on Cloud Foundry open source technology,IBM Bluemix™ makes application development easier with Platform as a Service (PaaS). Bluemix also provides pre-built Mobile Backend as a Service (MBaaS) capabilities.By abstracting lower level infrastructure components,IBM Bluemix™ enables you to spend more of your time and talent writing the code.
You can deploy an application in IBM Bluemix by three ways either by using Cloud Foundry command line or Git/Jazzhub or by using IBM Bluemix plugin for Eclipse IDE.
The illustration below will help you to build and deploy java application in IBM Bluemix using IBM Bluemix plugin for Eclipse IDE
Prerequisites for building and deploying java application in IBM Bluemix
- IBM Bluemix Account – Take a 30 day free trial here http://ibm.biz/bluemixapp
- Eclipse IDE for Java EE developers
- IBM Bluemix plugin for Eclipse Java EE IDE
- Open your Bluemix page and click on the CATALOG, Goto Data and Analytics and click on SQL Database
4) Click on the + icon and then edit the DDL statement
5) After editing the DDL statement,click on RUN DDL, If all is well, you will receive a message DDL Ran successfully
6) After successful creation you can see your table details and also browse the data(if any)
Make sure that you have added Bluemix plugin in your Eclipse IDE or else follow the steps here
After installing the Bluemix plugin for Eclipse IDE, Click on File>New>Other and search for Server. Click on Next
Then click IBM>IBM Bluemix and click on Next
Create a jsp application to insert user’s details into database.
Front end: Input –> FirstName, LastName, Mobile Number and Email Address
For integration with the back end(SQL DB) in Bluemix you have to either hardcode the VCAP_SERVICE environment variable (You can view the credentials by clicking on show credentials) in your code or take it dynamically
Right click on your app in Eclipse IDE, Click on Run As>Run on Server>Cloud>IBM Bluemix and Enter your application name(eg:javadbapps) and Click next
Customize the memory limit if required and click on Next
Select the database you wish to bind to your application,here we will bind it using javadb(the one that was created) and then click on FINISH
pushing the application into bluemix
Voila!Its now running in Bluemix
An application ready within few minutes. Thanks to IBM Bluemix™ for making developer’s life so easy!