DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
  1. DZone
  2. Software Design and Architecture
  3. Cloud Architecture
  4. Deploy an Application to Alibaba Cloud EDAS in Eclipse

Deploy an Application to Alibaba Cloud EDAS in Eclipse

In this post, we look at how to develop applications using this PaaS platform and then deploy these microservices to the cloud.

Leona Zhang user avatar by
Leona Zhang
·
May. 20, 19 · Tutorial
Like (1)
Save
Tweet
Share
3.00K Views

Join the DZone community and get the full member experience.

Join For Free

In a previous article, we discussed how to deploy a local Java application directly to an Alibaba Cloud ECS instance. For those who are already using Alibaba Cloud Enterprise Distributed Application Service (EDAS), you may be wondering how to use this plug-in to deploy applications on EDAS. In this article, we will answer this question and explain how to deploy Java applications to Alibaba Cloud EDAS in Eclipse.

Alibaba Cloud Architecture

Alibaba Cloud Architecture

About EDAS

Enterprise Distributed Application Service (EDAS) is a PaaS platform involving applications and microservices. It provides a variety of application release capabilities and lightweight microservice solutions that can help you solve monitoring, diagnostics, and high-availability O&M issues in your application and service management processes. EDAS is available in the Spring Cloud and Dubbo environments.

Develop an Application Locally

The coding method is similar no matter whether you are compiling Java applications that run on EDAS or locally. Therefore, this article takes a Java servlet for printing "Hello World" on a Web page as an example to explain the deployment method.

Eclipse Workspace

public class IndexServlet extends HttpServlet {
    private static final long serialVersionUID = -112210702214857712L;

    @Override
    public void doGet( HttpServletRequest req, HttpServletResponse resp ) throws ServletException, IOException {
        PrintWriter writer = resp.getWriter();
        // Demo: Use Alibaba Cloud Toolkit to modify the code of a local application and deploy the application to the cloud.
        writer.write("Deploy from alibaba cloud toolkit. 2018-10-24");
        return;
    }
    @Override
    protected void doPost( HttpServletRequest req, HttpServletResponse resp ) throws ServletException, IOException {
        return;
    }}

You can download the source code from this link.

The preceding code is a standard Java project used to print the string "Hello World" on a Web page.

Install Plug-in

Alibaba Cloud provides an Eclipse-based plug-in to help developers efficiently deploy applications written in the local IDE to EDAS.

URL of the plug-in: https://www.aliyun.com/product/cloudtoolkit_en

The installation process of this Eclipse-based plug-in is similar to that of a common plug-in, and therefore will not be detailed here.

Configure the Plug-in Preferences

After installing the plug-in, configure the preferences by choosing:

Top menu > Window > Preferences > Alibaba Cloud Toolkit > Accounts

When the following page is displayed, configure the AK and SK of your Alibaba Cloud account to complete the configuration of preferences (if you are using a RAM user account, enter the AK and SK of the RAM user).

3

Deploy the Application

Deploy the Application in Eclipse

In Eclipse, right-click the project name and choose Alibaba Cloud > Deploy to EDAS from the shortcut menu. The following deployment window is displayed:

Deploy the Application in Eclipse

In the EDAS Deployment Configuration dialog box, set Region, Namespace, Application, and Group based on your actual requirements, choose a deployment package generation mode, and click Deploy.

Note: If you have not created any applications in EDAS yet, click Create application on EDAS console in the upper-right corner of the dialog box to go to the EDAS console and create an application. For more information about how to create an application, see https://www.alibabacloud.com/help/doc-detail/99912.html

Description of Deployment Parameters

Description of parameters in the Application pane:

  • Region: Indicates the region of the application.
  • Namespace: Indicates the namespace of the application.
  • Application: Indicates the application name.
  • Group: Indicates the application group.

Deploy File: Two options are available.

  • Maven Build: If Maven is used to build the current project, you can use Alibaba Cloud Toolkit to directly build and deploy the application.
  • Upload File: If Maven is not used to build the current project, or a locally packaged deployment file already exists, you can select and directly upload the local deployment file.
application Alibaba Cloud Spring Cloud Eclipse

Published at DZone with permission of Leona Zhang. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Choosing the Right Framework for Your Project
  • How We Solved an OOM Issue in TiDB with GOMEMLIMIT
  • Microservices 101: Transactional Outbox and Inbox
  • Best CI/CD Tools for DevOps: A Review of the Top 10

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: