Pages

Complete Guide To Deploy Java Web Application in Amazon Ec2 using Eclipse

Hi readers,
Today I'm going to show you how to deploy simple java web application in amazon ec2 using Eclipse IDE.
Before we begin we need some required things,

k, lets start, here we go....

Step 1
  • First you have to install the AWS toolkit for eclipse plugin. Simply go to Help--> Eclipse Market Place --> Search Amazon
  • You will get the AWS toolkit for eclipse .
  • Click Install
  • It will show the corresponding packages and after agree the license will install it. Just a simple procedure.

Step 2
  • Windows --> Preferences --> select AWS Toolkit and Fill the fields according to your amazon ec2 account 
  • Give your name to Account Name (Not Necessary), but give exact value to Access Key ID and Secret Access Key according to your amazon acc.
  • In the optional configuration (Expand it) give account id (exact value) to that field.

Step 3
  • Windows --> Show view --> Other --> Select AWS toolkit view (Select all views) --> OK
  • Now you can see the perspective view of aws.

Step 4
  • Now the configuration part is over.
  • Lets create a Amazon ec2 server. To do that File --> New --> Other --> Server --> server  --> select amazon ec2 or amazon elastic server tomcat version 6 (you can either choose tomcat version 7)
  • Fill the fields and Finish. (Hope you have some basic understand about eclipse)


Step 5
  • Now create a Dynamic Web project. File --> New --> Other -> Web --> Dynamic Web Project
  • Give whatever name you like.
  • Choose AWS Ec2 or Elastic runtime as a target runtime. 
  • Click Finish


Step 6
  • Now create a servlet and Finish
  • Change the doGet() in servlet (Only for demo. This is where your code goesssss)


Step 7
  • Right click Servlet --> Run as --> Run On server --> Select the server you above create and Finish.

Step 8
  • Eclipse will automatically open the web page that you created. (Or in server tab right click the server and select amazon web service --> running)

Thats it.....

Just a simple procedure but you can expand this in your war... its up to you.


13 comments:

harshadura a.k.a. Durapix said...

maxxa ayye!

shashi(Rajji) said...

thanks a lot :)

sezhian said...

Good Man ! Write More Please!

sumit kher said...

I am basically not a programmer and I am comparatively new to Java technology , so I was wondering what all topics should be covered up if i have to start java from the start and has any one
studied or got any info regarding this 6 week java training online course http://www.wiziq.com/course/12145-the-6-week-complete-java-primer-with-training-certificate and should we also have knowledge of C language before we further move on to Advance Java topics??

NP said...

this guide is still up to date?

heena goyal said...

Hey sumit kher,
c language and java are two different languages so you only need to know how to make logic not the syntax of c or c++. And i have taken http://www.wiziq.com/course/12145-the-6-week-complete-java-primer-with-training-certificate this course and it worked for me. It is really nice course and i think you should give it a shot.

John clark said...

Hi heena,
I have no idea about this online java training course you are talking about but i have taken many other courses from http://www.wiziq.com which has worked for me . It is really cool stuff which they provide like videos,notes,cd's and also the teachers are also good. So even i was planning to learn java so now when i came across ur comment even i have enrolled in http://www.wiziq.com/course/12145-the-6-week-complete-java-primer-with-training-certificate because i have studied from this site before also so i have faith on this one...

prakash kadam said...

This is the information that I was looking for and let me tell you one thing that is it is very useful for who is looking for Java Online Training.

Matt Hardy said...

This is really interesting, You are a very skilled blogger. I have joined your feed and look forward to seeking more of your magnificent post. Also, I’ve shared your site in my social networks!San Francisco Web Design

Divya Besant said...

amazing information about java.
Learn in Deatail Java in Java Training Institute

jermygilbert said...

Thanks for sharing such a good information...

BlueHost Hosting Review

AJ AY said...

Thank you very much for the information shared on AWS. I appreciate help.

karthick lp said...

Very good step by step explanation in such way that new learners can understand easily. Good effort.

java training in chennai

Post a Comment