Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploy Java Web application on Amazon Cloud

I have a web application developed with Struts2, JSP, JPA, Spring and MySql. I want to move this application to Amazon Cloud. I have not done a cloud deployment before or know how to do it. Can anyone help me on a step by step process or a procedure to follow or a document that will guide me in doing this. Thanks for your help.

like image 662
Uchenna Nwanyanwu Avatar asked Mar 19 '12 08:03

Uchenna Nwanyanwu


People also ask

Can we deploy Java application on AWS?

AWS provides several tools for working with Java and Elastic Beanstalk. Regardless of the platform branch that you choose, you can use the AWS SDK for Java to use other AWS services from within your Java application.

How do you deploy a Java web application?

To deploy a web application, click Server Configuration and then click the Virtual Servers tab. Select the virtual server in which you will need to deploy the web application. Click the Web Applications tab > New button. Specify the web application package.

Does AWS work with Java?

The AWS SDK for Java provides a Java API for AWS services. Using the SDK, you can easily build Java applications that work with Amazon S3, Amazon EC2, DynamoDB, and more.


1 Answers

Upload your project's .war in elastic bean stalk and deploy project.

The steps to create a new application in beanstalk is -

1) Create a new application say "test app" in Elastic beanstalk, chose the region which best suits your requirement.

2) Create a new environment in the application "test app", select the application server you like to have i.e, tomcat 6 32/64 or tomcat732/64.

3) upload the .war in the newly created environment.

4) You can provide a custom Cname through which you can access you webapplication from browser.

5) Finally based on your requirements you can set the healthcheck status time interval, scaling unit

like image 195
Sangram Anand Avatar answered Sep 19 '22 17:09

Sangram Anand