views:

130

answers:

1

I don't want to use Tomcat, Jetty or an Java EE 6 container to offer REST services but the built in web server.

+1  A: 

Ensure that you have Jersey's jersey-server.jar in the classpath, then it's as simple as:

HttpServer server = HttpServerFactory.create("http://localhost:9998/");
server.start();

Pick whatever port you want to use.

BalusC