A status on JAX-RS 2.0. Early Draft.

With the Early Draft of JAX-RS 2.0 review period closed for a little while now, here's Arun's walk through the technology's new and improved features.

ALT_DESCR

The Client API seems to be a very popular feature and one that seems pretty stable at this point. Filters and Handlers is another set of new features enabling interception of requests and responses while Hypermedia, a founding principle for REST, is better supported. JAX-RS 2.0 also offers the ability to validation parameters with BeanValidation, introduces asynchronous processing (returning Future objects on the client side) and finally better connection negotiation. Read all about it here.

JAX-RS has become an important component of the Java EE platform and the cloud theme going forward is only making it even more relevant. Check out this earlier post for Marek's (co Spec Lead on JAX-RS 2.0) take on where the JSR stands.

Comments:

The original specification had MVC controllers; too bad the new spec leads dropped it.

Posted by guest on February 14, 2012 at 07:29 AM PST #

To clarify:

JAX-RS 2.0 proposal submission to JCP had listed MVC support as one of the focus areas. Stating that "original specification had MVC controllers" is a fallacy. JAX-RS specification never had MVC controllers (support).

Also, wrt. decision on dropping MVC support from JAX-RS 2.0, it is not true that "new spec leads dropped it". It was a decision discussed within and approved by the whole JAX-RS 2.0 expert group. The EG felt that the topic is not mature enough to be specified at the moment. We need to experiment with MVC support a little more in the world of proprietary implementations first in order to come up with a sound standard API.

Posted by Marek Potociar on February 14, 2012 at 09:06 AM PST #

Post a Comment:
Comments are closed for this entry.