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.
Take a look at Dropwizard, the summary on the website said what has to be said about.
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.