Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lightweight Webservice producing in Java (without an application server) [closed]

Is there any Java library allowing to build a simple standalone webservice server without any application server framework?

like image 965
jumar Avatar asked Feb 03 '09 13:02

jumar


4 Answers

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);
like image 115
Joachim Sauer Avatar answered Oct 23 '22 05:10

Joachim Sauer


Axis 2 has a simple standalone server (see http://ws.apache.org/axis2/1_4_1/installationguide.html)

like image 22
Vinze Avatar answered Oct 23 '22 03:10

Vinze


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.

like image 2
ng. Avatar answered Oct 23 '22 04:10

ng.


Jetty can be run embedded in a java application. Have a look at it.

like image 1
maskefjes Avatar answered Oct 23 '22 05:10

maskefjes