Ok, it has been a while between posts, but that is not to say that the monkeys haven't been busy. This next little experiment went very well, almost flawless. The idea was 'rapid development' by where a J2EE website could be built & deployed. Eclipse, Maven and Amazon EC2 to the rescue. I'll quickly walk through the steps, although I might not be able to add a lot of detail:

- Prerequisites: Eclipse + AWS toolkit + M2Eclipse plugin are installed & configured.
- Create a new Maven project in Eclipse using: maven-archetype-webapp

You should now have a webapp project with a single "Hello World" jsp file and the necessary webapp manifest files. - Start up an Amazon EC2 instance using a Tomcat AMI. I used ami-2eb05347 (aws-console-quickstart-amis/tomcat/1.2/tomcatquickstart.manifest.xml). Make sure that your Security Group includes the Tomcat ports (I've got mine configured with 80, 8080, 443, 22, and 3306)

- Once started, copy your "Public DNS Name" from EC2 (mine was ec2-72-44-33-110.compute-1.amazonaws.com) and deploy the application using Eclipse Run (the settings I use are below, most are default):

- Navigate in your browser to your Public DNS Name + Eclipse project/webapp name (ie: http://ec2-72-44-33-110.compute-1.amazonaws.com/EC2Webapp/) and you should have a nice "Hello World!".... ta da!
- Remember to shut down your EC2 instances when you are done playing (or it might get expensive...)



