1

I want to implement a REST service in Java.

I should not be a servlet (no need of jetty, jersey, glassfish, tomcat).

I would love a simple jar-file that includes a standalone http-server I can call and implement my handlers. Should support HTTPS, Basic-Auth and JSON - no need for SOAP.

Any suggestions? Thanks!

1

You can embed Jetty and use it like a standalone HTTP server (without all the Servlet stuff). Embedded Jetty is a perfect web server to use something like this. It does a good job of the HTTP stuff, without the load of Java EE.

If Jetty doesn't work for you, try Netty. I haven't used Netty personally, but I have heard that it is great. It should have the same features as Embedded Jetty

1

You can create a spring boot application which has in-built tomcat server and you can easily write the rest service with minimum configuration.

0

I finally did it with grizzly that is - as far I understood - more or less part of Jersey. But it would work with others too.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.