Deploy java web service without using web server

前端 未结 9 1171
情话喂你
情话喂你 2020-12-02 23:53

It is possible to deploy my own created web service to any of PC without installing any web server app eg:tomcat? I want make it like agent/plug-in in any PC. In order to ac

相关标签:
9条回答
  • 2020-12-03 00:35

    Take a look at Jetty, a very light servlet container

    0 讨论(0)
  • 2020-12-03 00:35

    I think Spring web services can be configured to run in a "fake" web server as well - there is a discussion on this on spring web services forum for sure (I needed the same thing, but ended up using a web server due to other issues)

    0 讨论(0)
  • 2020-12-03 00:41

    Even lighter than running Jetty you can use the HttpServer built into Java.

    http://java.sun.com/javase/6/docs/jre/api/net/httpserver/spec/com/sun/net/httpserver/package-summary.html

    You'll need to write your own code for parsing request data but it's certainly doable.

    http://blogs.operationaldynamics.com/andrew/software/free-java/sun-secret-webserver.html

    0 讨论(0)
提交回复
热议问题