Skip to content
This repository was archived by the owner on May 28, 2018. It is now read-only.

Commit 43e54a7

Browse files
Michal GajdošGerrit Code Review
authored andcommitted
Merge "docs update, CDI info added to the migration guide"
2 parents fe23abd + 5b56f79 commit 43e54a7

File tree

1 file changed

+56
-1
lines changed

1 file changed

+56
-1
lines changed

docs/src/main/docbook/migration.xml

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
55
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.
77
88
The contents of this file are subject to the terms of either the GNU
99
General Public License Version 2 only ("GPL") or the Common Development
@@ -52,6 +52,61 @@
5252
xml:id="migration">
5353
<title>Migration Guide</title>
5454

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+
&lt;dependency&gt;
84+
&lt;groupId&gt;org.glassfish.jersey.containers.glassfish&lt;/groupId&gt;
85+
&lt;artifactId&gt;jersey-gf-cdi&lt;/artifactId&gt;
86+
&lt;version&gt;${pre-2.15-version}&lt;/version&gt;
87+
&lt;/dependency&gt;</programlisting>
88+
The above dependency needs to be replaced with:
89+
<programlisting language="xml" linenumbering="unnumbered">
90+
&lt;dependency&gt;
91+
&lt;groupId&gt;org.glassfish.jersey.ext.cdi&lt;/groupId&gt;
92+
&lt;artifactId&gt;jersey-cdi1x&lt;/artifactId&gt;
93+
&lt;version&gt;&version;&lt;/version&gt;
94+
&lt;/dependency&gt;</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+
&lt;dependency&gt;
98+
&lt;groupId&gt;org.glassfish.jersey.ext.cdi&lt;/groupId&gt;
99+
&lt;artifactId&gt;jersey-cdi1x-transaction&lt;/artifactId&gt;
100+
&lt;version&gt;&version;&lt;/version&gt;
101+
&lt;/dependency&gt;</programlisting>
102+
</para>
103+
</listitem>
104+
</itemizedlist>
105+
</para>
106+
</section>
107+
</section>
108+
109+
55110
<section xml:id="mig-2.12">
56111
<title>Migrating from Jersey 2.11 to 2.12</title>
57112
<section xml:id="mig-2.12-highlights">

0 commit comments

Comments
 (0)