Jersey 2.0 Integrated into GlassFish 4.0
- by Jakub Podlesak
The latest promoted build of GlassFish 4.0 (glassfish-4.0-b43.zip) now contains upgraded Jersey version, 2.0-m05. Users are getting an early access to the implementation of some parts of the JAX-RS 2.0 API Early Draft Review 3. The appropriate JAX-RS bundle, version 2.0-m09 , gets bundled into GlassFish 4.0 as well.
What should work
The simple answer is: all the basic stuff. We have particularly tested the following two examples:
simple hello world webapp
multipart webapp
Both above linked archives contain adjusted projects, so that resulting war files do not bundle any Jersey dependencies. Both also use Jersey 2 specific Servlet class, org.glassfish.jersey.servlet.ServletContainer, for deployment. See Martin's blog post on how to package war applications capable of running with both Jersey 1 and Jersey 2 ServletContainer classes.
What has not been covered yet
The main areas, which have not been touched yet in Jersey 2 are:
EJB integration
CDI integration
Validation
These are also the areas where we are going to spend the most of our cycles in the coming month.