<p>I'm looking for a light version of REST for a Java web application I'm developing. </p>

<p>I've looked at RESTlet (www.restlet.org) and the REST plugin for Struts 2, but I haven't made up my mind. I'm leaning towards RESTlet, as it seems to be lighter.</p>

<p>Has anyone implemented a RESTful layer without any of the the frameworks or with the frameworks? </p>

<p>Any performance issues that you've seen because of the new web layer? </p>

<p>Did the introduction of REST added unmanageable or unreasonable complexity to your project? (Some complexity is understandable, but what I mean is just plain overkilling your design just to add REST)</p>

[{'answer_id': 66334, 'author': 'DustinB', 'author_id': 7888, 'author_profile': 'https://Stackoverflow.com/users/7888', 'pm_score': 3, 'selected': True, 'text': '<p>Well, I\'ve used Enunciate quite a bit.  It uses simple annotations to provide either REST and/or SOAP endpoints.</p>\n\n<p><a href="http://enunciate.codehaus.org" rel="nofollow noreferrer">http://enunciate.codehaus.org</a></p>\n\n<p>Plus, Ryan Heaton has always provided top-notch support for things, too.</p>\n'}, {'answer_id': 66360, 'author': 'davetron5000', 'author_id': 3029, 'author_profile': 'https://Stackoverflow.com/users/3029', 'pm_score': 1, 'selected': False, 'text': '<p>I am working on a REST API for <a href="http://www.gliffy.com" rel="nofollow noreferrer">gliffy.com</a> and we ended up rolling our own.  We didn\'t want to have to bring in Struts 2, Spring, or any other framework.  I looked at RESTLet and found it incredibly confusing and over complicated.</p>\n\n<p>Apache has an implementation of the JAX-RS spec, but it is not finalized and also has some oddities to it.  We\'re tentatively planning to open source our solution, but that\'s not for a few months.  </p>\n\n<p>Rolling your own is easy, though.  The Servlet Specification gives you everything you need, and you can easily connect to a database via Hibernate (see <a href="http://www.naildrivin5.com/daveblog5000/?p=39" rel="nofollow noreferrer">http://www.naildrivin5.com/daveblog5000/?p=39</a> for how to set up JPA without using EJB3).</p>\n'}, {'answer_id': 66723, 'author': 'Darrel Miller', 'author_id': 6819, 'author_profile': 'https://Stackoverflow.com/users/6819', 'pm_score': 1, 'selected': False, 'text': "<p>I found restlet to be a really elegant architecture.  I'm working in the .net world so  it was not an option for me, but I was able to build my own framework following the same basic principles of restlet.\nI have found the conversion of our WCF contract-based SOA application to REST based one has significantly simplified the application,</p>\n"}, {'answer_id': 75423, 'author': 'eckes', 'author_id': 13189, 'author_profile': 'https://Stackoverflow.com/users/13189', 'pm_score': 2, 'selected': False, 'text': '<p>You know there is a new JCP API for Accessing RESTful Services, also:</p>\n\n<p>JAX-RS JCP311 \n<a href="https://jsr311.dev.java.net/" rel="nofollow noreferrer">https://jsr311.dev.java.net/</a></p>\n\n<p>The open source version is called Project Jersey</p>\n'}, {'answer_id': 82165, 'author': 'James Strachan', 'author_id': 2068211, 'author_profile': 'https://Stackoverflow.com/users/2068211', 'pm_score': 4, 'selected': False, 'text': '<p>I\'m a huge fan of JAX-RS - I think they\'ve done a great job with that specification. I use it on a number of projects and its been a joy to work with. </p>\n\n<p>JAX-RS lets you create REST resources using POJOs with simple annotations dealing with the URI mappings, HTTP methods and content negotiation all integrated nicely with dependency injection. There\'s no complex APIs to learn; just the core REST concepts (URIs, headers/response codes and content negotiation) are required. FWIW JAX-RS is quite Rails-ish from the controller point of view</p>\n\n<p>There are a number of JAX-RS implementations out there - see <a href="https://stackoverflow.com/questions/80799/jax-rs-frameworks">this thread for a discussion</a>.</p>\n\n<p>My personal recommendation is to use <a href="http://jersey.java.net/" rel="nofollow noreferrer">Jersey</a> as its got the biggest, most active community behind it, has the best features at the time of writing (WADL support, implicit views, spring integration, nice REST client API); though if you are using JBoss/SEAM you might find RESTeasy integrates a little better.</p>\n'}, {'answer_id': 96322, 'author': 'Avi Flax', 'author_id': 7012, 'author_profile': 'https://Stackoverflow.com/users/7012', 'pm_score': 3, 'selected': False, 'text': "<p>I'm a big fan of Restlet, but I usually use it to implement apps whose primary role is to <strong>be</strong> a RESTful web service. It sounds like you're looking to add a RESTful API to an existing application. If that's the case, JAX-RS's (or Enunciate's) annotation-based approach might be a better fit for your project.</p>\n\n<p>As for Restlet, I can tell you that I've been very impressed with the developers and the community; they're very active, engaged, responsive, and committed to a stable, efficient, reliable, and effective framework. My single favorite aspect of the framework is that it is a ground-up implementation of the REST paradigm; therefore there is no impedance-mismatch between a Restlet app's external API and internal implementation. I also really like how flexible it is - it can run inside a Java application container/server such as JBoss, Tomcat, Jetty, etc, or standalone, with an embedded HTTP server library.</p>\n"}]
['https://Stackoverflow.com/questions/66288', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/-1/']