JAX-RS Frameworks [closed]
Solution 1:
FWIW we're using Jersey as its packed full of features (e.g. WADL, implicit views, XML/JSON/Atom support) has a large and vibrant developer community behind it and has great spring integration.
If you use JBoss/SEAM you might find RESTeasy integrates a little better - but if you use Spring for Dependency Injection then Jersey seems the easiest, most popular, active and functional implementation.
Solution 2:
Restlet has an extensive list of extensions for Spring, WADL, XML, JSON as well and many more, including an extension for JAX-RS API.
It is also the sole framework available in six consistent editions:
- Java SE
- Java EE
- Google Web Toolkit
- Google AppEngine
- Android
- OSGi environments
Its main benefits are:
- fully symmetric client and server API when JAX-RS was designed for server-side processing
- connectors for other protocols than HTTP (mapping to HTTP semantics) when JAX-RS is HTTP only
- much broader feature scope including full URI routing control via the Restlet API (but can integrate with Servlet if needed)
- full provision for NIO support
The JAX-RS API can be a good choice if you are restricted to JCP approved APIs (then don't use Spring or any extension of the JAX-RS projects like Jersey and RESTeasy!), but otherwise Restlet is the most mature framework (initially released in 2005) and will give you, in its 2.0 version, all the benefits of annotations combined with a powerful and extensible class-oriented framework.
For a longer list of features, please check this page.
Best regards, Jerome Louvel
Restlet ~ Founder and Lead developer ~ http://www.restlet.org