Deploy Java Web application on Amazon Cloud Deploy Java Web application on Amazon Cloud spring spring

Deploy Java Web application on Amazon Cloud


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


Got it... thanks for the detailed description. You can make it in two ways

  1. Create a singleBeanstalk application.

create different environments for each company within the created application, and in every environment deploy the .war file and provide the resources as per your requirement such as tomcat 6/7, minimum number of instances & maximum number of instances for Auto scaling. Health check monitor interval, no. of times to check before timeout etc.,. and finally assign the cname (i.e, the url by which you access the application) associated with the company name, like if the webapp is for xyz company then provide cname as xyz.elasticbeanstalk.com.

2 . Create multiple Beanstalk applications i.e., one for every company and in each application you can create multiple environments like Development, Beta, Staging and live - based on your requirement.

And coming to DB

Go for RDS if your DB is relational DB. Two ways to plan for multiple company's is

1) Create a single RDS and create multiple schema's in it i.e., one schema for one organization.

2) Create separate RDS for every organization - recommended if DB records are more

Let me know if you have any queries. Happy to help...:)


please find me inline comments in bold.

Currently, the application is installed on a company's server, and users from the company that will use the application are created.

How is the installation done, and what is the architecture(x86/x64) and platform(windows   server/linux) of the server

The application knows how to manage its users. So every company that needs this application, buys a server and the application is deployed on the server.

Buys a server in the sense - you guys are providing the application and they are launching in their server, i mean in their own infrastructure.The facts i understood from your reply is, that you guys provide a web application to different company's. And those company's deploy your webapplication in their application server and DB in their DB server. 

Correct me if am wrong