An Oracle blog about Java Technology

Jersey 2 Integrated in GlassFish 4

Guest Author

JAX-RS 2.0 has released Early Draft 3 and Jersey 2 (the implementation of JAX-RS 2.0) released Milestone 5.

Jakub reported that this milestone is now integrated in GlassFish 4 builds. The first integration has basic functionality working and leaves EJB, CDI, and Validation for the coming months.

Jersey 2.0 in GlassFish 4

TOTD #182 explains how to get started with creating a simple Maven-based application, deploying on GlassFish 4, and using the newly introduced Client API to test the REST endpoint.

GlassFish 4 contains Jersey 2 as the JAX-RS implementation. If you want to use Jersey 1.1 functionality, then Martin's blog provide more details on that. All JAX-RS 1.x functionality will be supported using standard APIs anyway. This workaround is only required if Jersey 1.x functionality needs to be accessed.

Here are some pointers to follow

  • href="http://jcp.org/aboutJava/communityprocess/edr/jsr339/index3.html">JAX-RS
    2 Specification Early Draft 3
  • Latest status on

  • href="http://jax-rs-spec.java.net/nonav/2.0-SNAPSHOT/apidocs/index.html">Latest
    JAX-RS 2.0 Javadocs
  • Latest status on Jersey 2
  • href="http://jersey.java.net/nonav/apidocs/snapshot/jersey/index.html">Latest
    Jersey API Javadocs
  • href="http://dlc.sun.com.edgesuite.net/glassfish/4.0/promoted/latest-glassfish.zip">Latest
    GlassFish 4.0 Promoted Build

  • Follow @gf_jersey

Provide feedback on Jersey 2 to href="http://java.net/projects/jersey/lists/users/archive">users@jersey.java.net
and JAX-RS specification to href="http://java.net/projects/jax-rs-spec/lists/users/archive">users@jax-rs-spec.java.net.

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.