Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>My personal choice is <a href="http://www.jboss.org/resteasy" rel="nofollow">RESTeasy</a> with <a href="https://code.google.com/p/htmleasy/" rel="nofollow">Htmleasy</a>. Also <a href="http://jackson.codehaus.org/" rel="nofollow">Jackson</a> if you need JSON.</p> <p>RESTeasy:</p> <ol> <li><a href="http://en.wikipedia.org/wiki/Java_API_for_RESTful_Web_Serviceshttp://" rel="nofollow">JAX-RS standard</a> based open-source lib from one of <a href="http://www.jboss.org/" rel="nofollow">Java open-source leaders</a>. Excellent support.</li> <li>MVC based.</li> <li>Great docs, lots of examples.</li> <li>Works on GAE without any problems.</li> <li>Comes bundled with Jackson if you need to serve JSON (= you have mobile clients).</li> </ol> <p>Htmleasy</p> <ol> <li>Lightweight, builds upon JAX-RS and RESTeasy</li> <li>Can use different html templating engines including JSP and Mustache.</li> <li>Works with Mustache, which can be servers side (server Java renders template) or client side (JS renders template AJAX style).</li> </ol> <p>Suggestions:</p> <ol> <li>Same code base can serve both HTML and JSON, supporting web and mobile clients. </li> <li>Find right balance between server-side rendering and client-side rendering &amp; AJAX. Remember, biggest sites use both: servers-side to quickly give you first page, client-side &amp; AJAX for great responsiveness to user actions.</li> <li>Do not put your business &amp; database logic in JAX-RS methods, create a separate business layer classes instead.</li> <li>Unit test the business layer - you should have 100% coverage.</li> </ol>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload