Monday Mar 05, 2012

GlassFish 3.1.2 Updated Components (Final)

Now that GlassFish 3.1.2 has been released, it's time to check on the exact list of updated components (one of the important themes in pretty much every release).

• JSF/Mojarra 2.1.6
• Grizzly 1.9.46
• Metro 2.2
• Jersey 1.11
• Shoal 1.6.17
• EclipseLink 2.3.2
• Message Queue 4.5U2
• OSGi Core 4.3.0
• Update Center 2.3.5
• Hibernate Validator 4.2.0-FCS
• JavaDB 10.8.1.2
• Weld 1.1.4.Final

ALT_DESCR

About half of the bugs squashed in this GlassFish 3.1.2 release were through the integration of those recent components.

Wednesday Feb 22, 2012

JAX-RS 2.0 - Jersey Code Rulez

What's better than the JAX-RS 2.0 Early Draft? Well, code of course! As spec lead Marek Potociar just announced, the first Jersey 2.0 milestone build is out.

ALT_DESCR

This is an entirely new code base which uses HK2 for dependency injection (a core technology for GlassFish), offers a new asynchronous internal design as well as an API to programmatically define JAX-RS resources. Read about these and more about what's new in Marek's detailed post. Of course this is also the future reference implementation for JAX-RS 2.0.

Feel like trying it out? Simply go to Maven Central (of course none of this is production quality at this point).

Thursday Feb 09, 2012

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.

Sunday Feb 05, 2012

POJOMapping in Jersey for type-safe clients

Over on his blog, Jason Lee has a detailed post on the new POJOMapping feature in Jersey/GlassFish which offers strongly-typed client API's and illustrates this with a GlassFish Cluster administration sample.

ALT_DESCR

The post shows how to enable POJOMapping with a Jersey servlet initialization parameter and goes on to show the Cluster domain model. An archive with the entire sample is available there.

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.

.

Sunday Dec 18, 2011

Updated Components in GlassFish 3.1.2

One of the important goals of the upcoming GlassFish 3.1.2 release is to update the sub-components to their most recent versions.

This in itself squashes a number of bugs filed against GlassFish and brings individual new features to a fully integrated and supported product.

Here is the target list of components in this next GlassFish release :

Original Tesla Engine Photo from http://www.flickr.com/photos/tbridge/5349641870/

• JSF/Mojarra 2.1.6
• Grizzly 1.9.42
• Metro 2.2
• Jersey 1.11
• Shoal 1.6.15
• EclipseLink 2.3.1
• Hibernate Validator 4.2.0-FCS
• Weld 1.1.4

Should there be any changes, this will be documented on the GlassFish Wiki (which now has all the redirects in place following the recent move).

Tuesday Dec 13, 2011

Jersey 1.11 is here with MOXy support

Jakub, the Jersey lead has just announced Jersey 1.11 which offers EclipseLink's MOXy support, attaching filters to non-blocking clients as well as some docs cleanup.

Moxy Band

Jersey 1.11 is scheduled to be available as part of the upcoming GlassFish 3.1.2 release. More on other component updates for this release in an upcoming post.

I can't help but wonder if the number of Canadians involved in MOXy has anything to do with it being named after a heavy metal band. Project and product names are always fun stories.

Friday Nov 04, 2011

Tab Sweep - Jersey, Hudson, GlassFish Hosting, GC's compared, Spring to JavaEE, Modularity, ...

Recent Tips and News on Java, Java EE 6, GlassFish & more :

Radio Receiver

Jersey 1.10 released (Jakub)
The Hudson Book (eclipse.org)
Comparing Java 7 Garbage Collectors Under Extreme Load (Nerds Central)
GlassFish Hosting (Enciva)
Spring to Java EE Migration, Part 1 (OTN)
ASM 4.0 released (OW2)
Adopt A JSR! (The Java Source)
Early signs of EJB 3.2 (GlassFish source)
Practical challenges of profiler integration with Java/J2EE applications (TheServerSide)
LOGBack 1.0 (qos.ch)
55 New Things in Java 7 (DonaldOJDK Blog)
Java 8 and OSGi modularization (Neil and Tim)

Wednesday Oct 12, 2011

Happy Birthday Jersey!

3 years!

Wednesday Sep 07, 2011

Jersey moving forward - Contributions, Maven Central and more in 1.9

Jakub just announced the release of Jersey 1.9, an update to the GlassFish JAX-RS 1.1 implementation. This is the fourth release in six months.

ALT_DESCR

Jersey 1.9 features an externally-contributed WADL improvement, integration of all final artifacts on Maven Central (see this earlier post), async client improvements and more.

On the topic of Java EE and GlassFish artifacts on Maven Central, check out this blog entry by Ed Burns and start getting rid of those <repository> tags.

Tuesday Jul 05, 2011

Jersey experimental work : true non-blocking client

Pavel Bucek has been working on support for true non-blocking client support in Jersey. This frees developers from having to manipulate threads (which would result in poor use of resources anyhow) and is based on Jean-François Arcand's Async Http Client (AHC).

original photo from http://www.flickr.com/photos/storm-crypt/2889441616/

This is still experimental work at this point but could change rapidly if the feedback is positive and constructive. Note that the client API is part of the JAX-RS 2.0 scope.

Monday Jun 27, 2011

Jersey 1.8 - Another GlassFish 3.1.1 component is ready

We now have a new release of the JAX-RS 1.1 reference implementation - Jersey 1.8 is just out!

Thisbug-fix release follows the EclipseLink 2.3 release from last week (as part of the Eclipse Indigo train release) and other components such as Woodstox 4.1.1 and Weld 1.1.1 which have already been released and integrated.

GlassFish 3.1.1 Jersey

To get started with Jersey 1.8, begin here and don't forget to visit the Jersey Wiki pages. You can also grab a nightly build of GlassFish 3.1.1 or wait for the next promoted build (#10) due out in a few days.

As it currently stands for GlassFish 3.1.1, we have integration of the final bits for Metro 2.1.1 (currently at 2.1.1b7), Mojarra 2.1.3 (currently at 2.1.3b1), and MQ 4.5.1 (currently at 4.5.1b3) still ahead of us.

Thursday May 26, 2011

Jersey 1.7 - OAuth and more

Jersey 1.7 was released a few days ago. You can read about it on Jakub's blog (Jakub is the new project lead on Jersey). This is a JAX-RS 1.1 implementation which, among other things, enhances its existing OAuth support (the topic of a popular hands-on lab last year at JavaOne).

ALT_DESCR

If you're interested in trying out that part, check out the signature API and the latest jersey-oauth.pom dependency which comes with a set of samples in the oauth-tests module. I think you can expect more improvements and documentation in the near future.