Application Development - eWeek

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


Amazon recently released a plug-in for Eclipse called AWS Toolkit for Eclipse. This plug-in lets you develop software for the Amazon Web Services cloud without leaving Eclipse. Within Eclipse, you can manage and configure your AWS servers, as well as deploy and debug to the AWS servers.

By Jeff Cogswell
 
  • 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".
  • Items to Be Installed
    Eclipse located the items to be installed: EC2 Management, Simple DB Management and AWS Toolkit for Eclipse Core.
  • AWS Configuration
    Once installed, the plug-in provides access to AWS configuration, as well as features such as the ability to configure remote hosts.
  • Amazon Account Info
    The first step is configuring the plug-in with your own Amazon account information.
  • 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.
  • 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.
  • Initial Testing
    For initial testing, you can run your code against the local Tomcat installation.
  • Running Locally
    When running locally, you'll see the results of the Web page displaying the information about your local machine.
  • 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.)
xڽD]R!i1c ;neb1np}֭VږwxnV^ beQǨaRq.B3ύ'Qz}>"؈Pg m깮`H;v zd ΈS!:{c o[P2بcXa='D„A"wa3.{h[K"r( laӲfY7,ejZbĉMotO;$@g3b8gC eURRl趽XDΜ {`ܢ7c&,FEs`QN_7 ؗ_o8\`AHňeQ- W|lSB4_Zwnر#}$ϛmKȂiq9y& Gw@\E;YK8E `i$m*70{(mPb1Cπ=\3 Qb|1L`yCIHZ A =kFcg[ 1A A $|CmE #WcCSս8[9(eyYlҳJk;y⚧|&R3>{QNcI =TDO y؉0! Q-'KV inw-U ϱr:9vHJTM>q^|c`Wş I諂D'P6A*RM 58$,!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