Deploy an Application to Alibaba Cloud EDAS in Eclipse

In the previous article, we have 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.

Image for post
Image for post

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.

Image for post
Image for post
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;
}}

Install Plug-in

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

Configure the Plug-in Preferences

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

Image for post
Image for post

Deploy the Application

Image for post
Image for post
Image for post
Image for post

Description of Deployment Parameters

Description of parameters in the Application pane:

  • Namespace: Indicates the namespace of the application.
  • Application: Indicates the application name.
  • Group: Indicates the application group.
  • 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.

Written by

Follow me to keep abreast with the latest technology news, industry insights, and developer trends.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store