Help Center> > Getting Started> Creating a JAR Package Application

Creating a JAR Package Application

Updated at: 2018-12-27 18:42

Prerequisites

  • A cluster has been created, and an elastic IP address has been bound to the cluster. If no cluster created, create one by referring to Creating a Cluster.
    NOTE:

    This section requires only a few cluster resources. Therefore, create a cluster with low specifications.

  • Click and download the JAR package (example.jar), and upload the package to the software repository by referring to Creating Software Package.

Procedure

  1. Log in to ServiceStage, choose AppRelease > App Manager, and click Create Application.
  2. Click Containerized Application, and then click Create Container Application in the right pane.
  3. Set the parameters as follows:

    1. Set Application Name to app-jar.
    2. Select a value from Cluster.
    3. Select a value from Cluster Namespace.
    4. Other parameters do not need to be specified.

  4. Click Next to add the JAR package.

    1. On the page that is displayed, click Jar Package.
    2. Click Select Software Package next to Upload Mode and select the application package uploaded in Prerequisites.
    3. Other parameters do not need to be specified.

  5. Click Next to set Application Access Mode.

    1. Click Add Service in TCP/UDP Route Configuration.
    2. Specify Service Name with jar-test (recommended).
    3. Select External access for Access Mode.
    4. Select Elastic IP Address for Access Type.
    5. Select TCP for Protocol.
    6. Enter 8080 in Container Port.
    7. The value of Access Port can be automatically generated by the system or specified manually. If you customize a port, ensure that the port is not occupied. For example, enter a port that is not commonly used, for example, port 31447.

  6. Click Create Application.

Verification

Perform the following operations for verification after the application is created:

  1. Choose AppRelease > App Manager.
  2. Select the cluster to which the application is deployed.
  3. Locate and click the app-jar application.
  4. On the Overview tab page, you can view the external access address.

    The IP address is the EIP, and the port number is the access port number.

  5. Enter http://{EIP}:{Port}/hello in the address bar of the browser.

    NOTE:

    See the previous step to obtain {EIP} and {Port}.

  6. If the following page is displayed, the application is successfully deployed.

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 100 character

Content is empty.

OK Cancel