|
3 | 3 |
|
4 | 4 | DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
5 | 5 |
|
6 | | - Copyright (c) 2012-2014 Oracle and/or its affiliates. All rights reserved. |
| 6 | + Copyright (c) 2012-2015 Oracle and/or its affiliates. All rights reserved. |
7 | 7 |
|
8 | 8 | The contents of this file are subject to the terms of either the GNU |
9 | 9 | General Public License Version 2 only ("GPL") or the Common Development |
|
52 | 52 | xml:id="migration"> |
53 | 53 | <title>Migration Guide</title> |
54 | 54 |
|
| 55 | + <section xml:id="mig-2.15"> |
| 56 | + <title>Migrating to 2.15</title> |
| 57 | + <section xml:id="mig-2.15-highlights"> |
| 58 | + <title>Release 2.15 Highlights</title> |
| 59 | + |
| 60 | + <section> |
| 61 | + <title>Container agnostic CDI support</title> |
| 62 | + <para> |
| 63 | + Before 2.15, CDI integration was supported primarily in Java EE containers with built-in CDI support. |
| 64 | + From version 2.15 onwards, it is possible to leverage CDI integration also outside of Java EE environment. |
| 65 | + A new example, <link xlink:href='https://github.com/jersey/jersey/tree/master/examples/helloworld-weld'>helloworld-weld</link>, |
| 66 | + has been introduced to demonstrate the new feature using Grizzly HTTP server. |
| 67 | + Another example application, <link xlink:href='https://github.com/jersey/jersey/tree/master/examples/cdi-webapp'>cdi-webapp</link>, |
| 68 | + has been updated so that it enables Apache Tomcat Server deployment. |
| 69 | + </para> |
| 70 | + </section> |
| 71 | + |
| 72 | + </section> |
| 73 | + |
| 74 | + <section xml:id="mig-2.15-breaking-changes"> |
| 75 | + <title>Breaking Changes</title> |
| 76 | + <para> |
| 77 | + <itemizedlist> |
| 78 | + <listitem> |
| 79 | + <para> |
| 80 | + CDI support improvement caused breaking changes for those users directly referring to the following CDI supporting Jersey |
| 81 | + module in maven: |
| 82 | +<programlisting language="xml" linenumbering="unnumbered"> |
| 83 | +<dependency> |
| 84 | + <groupId>org.glassfish.jersey.containers.glassfish</groupId> |
| 85 | + <artifactId>jersey-gf-cdi</artifactId> |
| 86 | + <version>${pre-2.15-version}</version> |
| 87 | +</dependency></programlisting> |
| 88 | + The above dependency needs to be replaced with: |
| 89 | +<programlisting language="xml" linenumbering="unnumbered"> |
| 90 | +<dependency> |
| 91 | + <groupId>org.glassfish.jersey.ext.cdi</groupId> |
| 92 | + <artifactId>jersey-cdi1x</artifactId> |
| 93 | + <version>&version;</version> |
| 94 | +</dependency></programlisting> |
| 95 | + The following needs to be included in addition if you want to leverage CDI JTA support: |
| 96 | +<programlisting language="xml" linenumbering="unnumbered"> |
| 97 | +<dependency> |
| 98 | + <groupId>org.glassfish.jersey.ext.cdi</groupId> |
| 99 | + <artifactId>jersey-cdi1x-transaction</artifactId> |
| 100 | + <version>&version;</version> |
| 101 | +</dependency></programlisting> |
| 102 | + </para> |
| 103 | + </listitem> |
| 104 | + </itemizedlist> |
| 105 | + </para> |
| 106 | + </section> |
| 107 | + </section> |
| 108 | + |
| 109 | + |
55 | 110 | <section xml:id="mig-2.12"> |
56 | 111 | <title>Migrating from Jersey 2.11 to 2.12</title> |
57 | 112 | <section xml:id="mig-2.12-highlights"> |
|
0 commit comments