Develop an IBM Bluemix application on Eclipse

Source: Internet
Author: User

Lin Bingwen Evankaka original works.

Reprint please specify the source Http://blog.csdn.net/evankaka

Summary: This article explains how to use the install ECLIPSEIBM Bluemix plugin. and develop applications on Eclipse to be published in real time to the personal Bluemix Center.

bluxmix Account registration:https://apps.admin.ibmcloud.com/manage/trial/bluemix.html?

Cm_mmc=cmdevelopergcg-_-bluemix-_-csdn-_-onlineeventq2

First, the preparatory work

1. An IBM Bluemix account

2. Eclipse Luna or Eclipse Mars

Ii. Installing the Bluemix plugin in Eclipse

Eclipse version number used in this article the author chooses the latest Mars EE version number, and it is recommended that you use Luna or Mars for this experiment at the same time.

1. After opening eclipse, click Help > Eclipse Marketplace.


2. Search by the word "Bluemix" and select IBM Eclipse Tools for Bluemix. Here it is stated that it can only be used with Luna or Mars, so be aware of your Eclipse version number to avoid installation.



3, choose to install the plug-in, it will take the initiative to download, then you just have to make sure that you can, remember to select all.


Once the installation is complete, eclipse will prompt you to start again and follow the instructions.

4. After you open eclipse again, in the following Server tab, look for a space, right-click New > Server > IBM > Ibmbluemix, and Next.



5. Enter the email ID and password of your Bluemix account as required.


When you're done, remember to verify your account, just click on Validate accounts and then next.

6. Next select space, where you will find the space you created in your personal Bluemix center and choose one. The space here can be created by itself on the Bluemix Web page. NewSpace is the author of the new, some people may have a default dev space, which is due to your choice of the UK region.


So far. The development environment you need is all ready. There is no other server, the database needs to be installed and configured, because all this has been prepared on the Bluemix cloud for you, is it particularly simple? Next, like a programmer who has programmed Java EE, the finished program is published to the server.

III. Deployment of Applications

1. Create a maven warproject, and pay attention to choosing a good packageing class, where the war is chosen.


Once created, adjust the entire project folder such as the following:

2. Click the Servers tab and right-click the started Bluemix server.

Select Add and Remove.


3. Select your project on the left and click Add.

Note that if you remove a project from the right, you'll find it here. Personal Bluemix will delete the corresponding application, so be careful not to misuse it. JAVAWEBPROJECT3 is an application that I have created on the personal Bluemix Center.


4. Click Finish. The Application Details form opens.


Name the application. Here I use the name of the project directly. The Buildpack URL is the URL of your project visit, not written. Use the default, and then click Next.

5, by default, the Launch Deployment information has been set. Subdomain be able to set the beginning of the visit URL, memory limit to set the size of RAM, here I use the default, and then click Next.


6, after the completion of the above, assume that click Finish. You'll default to the no-bind service, assuming that clicking Next will show you the services created on your personal bluemix. such as the following two services are the author has created a good, in the binding corresponding to the service tick on it. If you want to create your own service here, click the blue triangle in the upper-right corner of the diagram.


When you click Finish, you may see errors such as the following


WORKAROUND: You need to use the command maven command to clean the package directly under the local war pack


Enter the command:


7. Push application.

Project assumes an update, requires another push, or fails the first push. Also need to push again. Under Bluemix, right-click->push is selected.


Open the console, output such as the following information. The statement was published successfully.


At this point, the entire step is completed. Finally, verify the results of an announcement:

Login to the Personal Bluemix Center, dashboard and the left CF application, then click on the application to see your published application (assuming that the eclipse plugin is used to connect to your personal Bluemix center, you cannot access the personal Bluemix Center via the site.) You do not think that the site is hung, turn off eclipse. And then log in from the site). as follows:


Iv. Summary

Use the Eclipse plugin to advertise relative use of cf. Personally, I think it's more troublesome. But it has a very big advantage, it supports remote debugging. This is not available with CF.

And Bluemix can debug remotely like any other javaeeserver. The way to start remote debugging is very easy, just right click on the application you need to debug, select Enable Application debug to enter the remote debugging mode. Eclipse will start to establish a link to the remote debugging session, and after the link is established, it will be able to debug like a normal javaeeserver. Note that it is assumed that the application name is underlined. Remote debugging will not be possible. Other than that. Applications that enter debug mode will also take the initiative to enter the development mode themselves.

Develop an IBM Bluemix application on Eclipse

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.