Is there any Java library allowing to build a simple standalone webservice server without any application server framework?
Java 6 contains JAX-WS, which makes it very easy to host a web service in a stand-alone application:
javax.xml.ws.Endpoint.publish("http://localhost:8000/myService/", myServiceImplementation);
Axis 2 has a simple standalone server (see http://ws.apache.org/axis2/1_4_1/installationguide.html)
Simple is the fastest and lightest NIO web server you will find in the Java world. About twice as fast as Jetty and a quarter the size.
Jetty can be run embedded in a java application. Have a look at it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With