In the first part of the article we have shown JAX-RS as an excellent way of implementing RESTful web services. On top of a RESTful web service that works with JSON you can easily write a JavaScript client using jQuery for example. This approach becomes more and more popular and a lot of people are very successful doing so. If you don’t like writing HTML and JavaScript yourself, you could consider looking at JBoss Errai (https://www.jboss.org/errai). This project brings CDI to the client-side using GWT. Everything like dependency injection and events are supported. You write clients like you write server-side code, and you can do advanced JavaScript like server-side pushing.
(Full Story: Migrating from Spring to Java EE 6 – Part 4 | How to JBoss)


July 3, 2012 
No comments yet... Be the first to leave a reply!