Release Notes - Jersey 2.15

Release date: 14-Jan-2015

Highlights

Container agnostic CDI support

Before 2.15, CDI integration was supported primarily in Java EE containers with built-in CDI support. From version 2.15 onwards, it is possible to leverage CDI integration also outside of Java EE environment. A new example, helloworld-weld, has been introduced to demonstrate the new feature using Grizzly HTTP server. Another example application, cdi-webapp, has been updated so that it enables Apache Tomcat Server deployment.

Breaking Changes

CDI support improvement caused breaking changes for those users directly referring to the following CDI supporting Jersey module in maven:

    <dependency>
      <groupId>org.glassfish.jersey.containers.glassfish</groupId>
      <artifactId>jersey-gf-cdi</artifactId>
      <version>${pre-2.15-version}</version>
    </dependency>

The above dependency needs to be replaced with:

    <dependency>
      <groupId>org.glassfish.jersey.ext.cdi</groupId>
      <artifactId>jersey-cdi1x</artifactId>
      <version>2.15</version>
    </dependency>

The following needs to be included in addition if you want to leverage CDI JTA support:

    <dependency>
      <groupId>org.glassfish.jersey.ext.cdi</groupId>
      <artifactId>jersey-cdi1x-transaction</artifactId>
      <version>2.15</version>
    </dependency>

Bug

Improvement

Task

Pull Requests

Previous releases