Application Development: LABS GALLERY: Amazon's AWS Toolkit Provides Total Eclipse Integration

 
 
By Jeff Cogswell  |  Posted 2009-08-24
 
 
 

LABS GALLERY: Amazon's AWS Toolkit Provides Total Eclipse Integration

 

LABS GALLERY: Amazon's AWS Toolkit Provides Total Eclipse Integration

Installation

As is always the case with Eclipse, installation of the plug-in couldn't be easier. In Eclipse, I clicked Help -> Install New Software to bring up this dialog box. I then filled in the Work With box with "http://aws.amazon.com/eclipse".

Installation

Items to Be Installed

Eclipse located the items to be installed: EC2 Management, Simple DB Management and AWS Toolkit for Eclipse Core.

Items to Be Installed

AWS Configuration

Once installed, the plug-in provides access to AWS configuration, as well as features such as the ability to configure remote hosts.

AWS Configuration

Amazon Account Info

The first step is configuring the plug-in with your own Amazon account information.

Amazon Account Info

Apache Tomcat

On the local end, you need to have an Apache Tomcat installation running. (Tomcat is open source and easy to install.) You can configure Tomcat from within Eclipse.

Apache Tomcat

Sample Code

Next you can enter some sample code. This example code just prints out information about the running server. Remember, the code will run on the server and the output will be displayed in a Web browser.

Sample Code

Initial Testing

For initial testing, you can run your code against the local Tomcat installation.

Initial Testing

Running Locally

When running locally, you'll see the results of the Web page displaying the information about your local machine.

Running Locally

Running the Code

Now the real fun begins: running the code under a cluster of AWS servers. First you must configure the servers, which is easy. (Note the warning that you'll be charged for the time the server is running until you shut it down.)

Running the Code

LABS GALLERY: Amazon's AWS Toolkit Provides Total Eclipse Integration - Page 11

 

LABS GALLERY: Amazon's AWS Toolkit Provides Total Eclipse Integration - Page 11

Rocket Fuel