Lightweight web services produced in Java (no application server)

Is there any Java library that allows you to build a simple stand-alone Web service server without any application server framework?

Solution

Java 6 includes jax-ws, which makes it easy to host web services in stand-alone applications:

javax.xml.ws.Endpoint.publish("http://localhost:8000/myService/",myServiceImplementation);
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>