Sunday Jan 08, 2012

RESTful JAX-RS Roundup

Note: if you're reading this using a feedreader, please make sure you've updated to the updated TheAquarium feed.

While most parameter handling examples with JAX-RS focus on @PathParam, there are other JAX-RS 1.x annotations that are worth knowing.

Mkyong has a short and simple example for how to use @MatrixParam (and for many more here) while John Yeary covers @CookieParam. The JavaDoc for both annotations can be found here and here.

ALT_DESCR

Meanwhile, Fran├žois explores Jersey's support for MVC where the Controller is a resource class, the model is returned by a resource method, and the view is a template which operates on the model (this is inspired by the stapler project and is also used by Hudson). Note that this is not part of the JAX-RS standard.

To close this quick roundup, I'd like to point you to a month-old JAX-RS blog entry by Adobe's Christophe Coenraets combining jQuery and JAX-RS/Jersey as probably the one with the best taste to date (IMO, etc...) !

Update: John Yeary has (a lot) more JAX-RS resources for you.

.

Top Aquarium posts for 2011

Of the 323 blog posts from 2011, here is the obligatory top 3 according to the blogs.oracle.com stats :

Java EE 7 review ballot results - Go! (March 15th)
Eclipse 3.6 (Helios) & GlassFish (June 24th)
GlassFish 3.1.1 has been released! Java 7 inside (July 28th)

ALT_DESCR

With the blogging system migration in early May this year, the stats may be off by a little bit (isn't that the definition of stats?) so these results may be missing some of the posts from earlier in the year.