Deploy java web service without using web server

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

    You mention Tomcat as an example of what you don't want to do, but Tomcat can be run in embedded mode, where it gets started up from inside your application:

    http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/catalina/startup/Embedded.html

    Saying that, I'd recommend Jetty, it's more light-weight than Tomcat.

提交回复
热议问题