Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deploy a web service to amazon EC2?

i've just created a web application and deployed it to Amazon EC2 , but now i want to create a java web service and deploy it to instance in Amazon AWS to be able to use it in my Application

like image 929
Ahmed Ali Avatar asked May 31 '12 11:05

Ahmed Ali


1 Answers

There are many possible configurations. This can be one of them:

  1. Start the application server (probably tomcat) with AJP enabled.
  2. Use the apache HTTP server JK module to connect the webserver to the Tomcat application.
  3. Deploy your web application on the application server and make it generate the WSDL using the external domain name or ip. For example: http://www.domain.com/application/service
  4. Make sure that the Amazon firewall has the port 80 open for that instance.
  5. If you use domain name, make your DNS point to that host.
like image 176
adosaiguas Avatar answered Nov 01 '22 10:11

adosaiguas