Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run Java EE app on EC2

Can anyone point me to the steps/resources that describe:

  1. How to deploy a Java EE app on amazon-EC2
  2. Maintain changes to the meta-data of the app server (deploy new applications) after an instance reboot (probably using amazon-ebs)
like image 893
Ryan Fernandes Avatar asked Jan 18 '10 05:01

Ryan Fernandes


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.


1 Answers

First check this out if you haven't already ran through it: http://docs.aws.amazon.com/gettingstarted/latest/awsgsg-intro/intro.html
it'll give you an idea of how it all works.

With regard to running a Java EE app on EC2, you have a couple of choices - but they generally come down to the following recipe:

  1. Start an instance
  2. Install a Java EE application server (tomcat/glassfish/websphere/...)
  3. Install your application (war/ear) into the application server

Now you can bundle the above into an ebs ami, or you can write a script (bash/sh/tcl) which applies those changes when your instance starts (which i prefer). The scripts allow you to modify what gets installed/started/moved around without having to rebundle your instance.

There's some great resources here: http://developer.amazonwebservices.com/connect/kbcategory.jspa?categoryID=100

Hope that helps.

like image 185
simonlord Avatar answered Sep 20 '22 01:09

simonlord