Deploy java web service without using web server

前端 未结 9 1209
情话喂你
情话喂你 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: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

提交回复
热议问题