Lightweight RESTful Java Framework

java, rest

Solution

Take a look at Dropwizard, the summary on the website said what has to be said about.

Developed by Yammer to power their JVM-based backend services, Dropwizard pulls together stable, mature libraries from the Java ecosystem into a simple, light-weight package that lets you focus on getting things done.

Dropwizard has out-of-the-box support for sophisticated configuration, application metrics, logging, operational tools, and much more, allowing you and your team to ship a production-quality HTTP+JSON web service in the shortest time possible.

I used it for a simple app recently, and it proved to be really quick and easy to get started and use it until the app was finished.

Problem

I have been looking into RESTful web services in Java and most of the approaches I have found look to be rather bloated. These include approaches from NetBeans, Spring 3, and EJB using Singletons. I may be wrong so please feel free to correct me but these all 'feel' like very complicated solutions to a relatively simple problem. Can anyone suggest a very simple and lightweight approach to doing RESTful webservices in java? I am not convinced MVC is necessary on the back end for these, instead I am looking at doing clean vertical slices. I will not need persistence unless it can be wired to mongoDB - so I don't need any ORM mapping.

Original source