Ahmed Ali
Ahmed Ali

Reputation: 2668

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

Upvotes: 6

Views: 4019

Answers (1)

adosaiguas
adosaiguas

Reputation: 1330

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.

Upvotes: 2

Related Questions