Deploying Java Web Apps in Azure Cloud Service (1)

Source: Internet
Author: User
Tags jboss

Microsoft Azure is an open, flexible cloud platform, in addition to its own . Net platform with good support, for a variety of open source software, language, tools, frameworks have good support, such as Java , Php , Python and so on, you can use your favorite language to develop any app deployed in Azure of the Web site or in a cloud service.

Azure The cloud service is Azure of a PAAS platform, which supports many different languages and frameworks, and can be based on a variety of different thresholds such as CPU load, queue, timing, etc. implementation Auto Scaling and other advanced features, as shown in:

This article briefly describes how to use the azure eclipse Plugins, quickly deploy your Span style= "font-family:arial;" >java Web cloud Service Before you formally use this feature, I hope you can understand some of the following limitations so that you can better design your cloud architecture:

  1. current azure cloud service Span style= "font-family: Microsoft Jacob Black;" > The underlying virtual machine is windows 2008/2012 linux need to migrate to azure Cloud Service linux system call, then you need to do some code modification
  2. Java applications can currently only be workrolein Cloud Service , without . Net the definition and mechanism of Web role and work role , but the use of various cloud services such as queues, storage, databases, etc. is not limited, you can develop and implement

    back to the text, we start our java on Azure Tour first you need to install jdk , eclipse azure account number, These basic parts are not mentioned, about azure it azure service)

  3. open eclipse azure for Eclipse plugin. You may use each eclipse different versions or distributions, such as JBOSS IDE Oracle IDE Span style= "font-family: Microsoft Jacob Black;" >, IBM IDE et cetera, as long as it's eclipse based
  4. Select "Install New Software" and enter The installation address for the Azure plug-in:/http Dl.msopentech.com/eclipse, select OK, select all the installation when the software selection appears, accept the full terms, then keep next, know the installation is complete, your Eclipse will restart once.

    3.Once the installation is complete, we'll create our firstAzure Javaproject, because this is primarily a demonstration of how to deployJavaapplication Deployment toCloud Service, so you need to prepare one for your ownWARpackage, if not, alsoOK,AzureIt comes with a test.Helloworld.war,For a simple test. OpenEclipse, selectNew Project, findAzure Deployment Project, select New Project.

    4. Write a name for your project and select Next:

    5.on this page, you will need to specify what you want to deploy to the cloud service.JDK, application servers, and apps. Well, I'll take a look.JDKsection, there are several different options, the first of which is that you can deploy your localJDKto the cloud, such asOracleof theJDK 1.8, you can deploy third-party, direct download from the cloudJDK, currently only supportsOpenJDK, you can make a remote site to download, but it must be noted that the remote JDK must be a zip Package, because the script is only responsible for theJDKuntie, in this example, I chose to deploy my localOracle JDK 1.8.0-60to the Cloud:

    6. The second page is the need to select the application server you want to deploy, there are currently a variety of servers to choose from, Common Tomcat,Jetty, JBoss , GlassFish etc are in the list, in this case select Jetty 9 as a Java application server; Similarly, if you have some special settings, you can choose to upload the local application server to the cloud, you only need to specify the path of the local server.

    7. The final part is to select the Java Web application you want to deploy , which is a standard war package, by default,theAzure application will provide a very simple HelloWorld War package, his basic function is to output the classic Hello Wolrd, if you only want to test the deployment process, you can select the deployment package, in this case I will deploy a test package Greenhouse.war:

    8. Click Done, create a new project, and when you are done, you will see the project structure as shown. the Cert directory stores the certificates required for some projects, such as certificates for Remote Desktop Connections, andcloudtools is a release and build tool thatdeploy It is packaged to complete the package that needs to be released, Workrole1 are some startup run scripts and examples HelloWorld package, the other three files are package definitions, cloud service profiles and definition files.

Deploying Java Web Apps in Azure Cloud Service (1)

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.