Cloud Computing
I have created a web based project in Jsp and Servlets which works good on the Apache Tomcat Server. I want to know how can i put it on Amazon using Cloud Technology.
First, I recommend going through the Get Started with EC2 guide to get the perspective of an end user new to cloud computing. This involves using the EC2 web console to control the cloud. This is a good guide for novice users.
Second, try going through the Getting Started with the Command Line Tools guide. Once you've completed the Setting Up the Tools step you'll want to jump to the Launching and Using Instances guide. This uses the EC2 command line interface to control the cloud. This is the guide for advanced users.
Once you've got a VM up and running try deploying Tomcat as usual. This should get your feet wet.
Upload your project's .war in elastic bean stalk and deploy project.
The steps to create a new application in beanstalk are:
Create a new application say "test app" in Elastic beanstalk, chose the region which best suits your requirement.
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.
upload the .war in the newly created environment.
You can provide a custom Cname through which you can access you web application from browser.
Finally based on your requirements you can set the healthcheck status time interval, scaling unit
For further help you can also buy any cloud management software to upload and manage your web based application easily.
You can also use a PaaS instead of an IaaS to deploy your application to Amazon. The benefit of this is that you don't need to configure, neither to install Tomcat, MySQL,.. you just enable the services that you would like and just start using them. This is a guide which explains you how to deploy your application to a specific PaaS specialized in java stacks as they support Tomcat, JBoss, Jetty and Glassfish.
You should look for all the alternatives that you could have and just choose what is better depending on your needs.
精彩评论