cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [CONF] Apache CXF Documentation > 2.7 Migration Guide
Date Tue, 02 Oct 2012 16:37:00 GMT
    <base href="">
            <link rel="stylesheet" href="/confluence/s/2042/9/1/_/styles/combined.css?spaceKey=CXF20DOC&amp;forWysiwyg=true"
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="">2.7
Migration Guide</a></h2>
    <h4>Page <b>edited</b> by             <a href="">Daniel
                         <h4>Changes (1)</h4>
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
            <tr><td class="diff-added-lines" style="background-color: #dfd;">
<br>h3. Major Notes <br>* CXF 2.7.x no longer supports Java 5.   In order to upgrade
to 2.7.0, you must be using Java 6 (or newer).  Many of the dependencies that CXF uses have
moved to Java 6 and in order to get fixes and updates, we have moved to Java 6 as well. <br>
            <tr><td class="diff-unchanged" >h3. New Features <br> <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
    </div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
<h3><a name="2.7MigrationGuide-MajorNotes"></a>Major Notes</h3>
	<li>CXF 2.7.x no longer supports Java 5.   In order to upgrade to 2.7.0, you must be
using Java 6 (or newer).  Many of the dependencies that CXF uses have moved to Java 6 and
in order to get fixes and updates, we have moved to Java 6 as well.</li>

<h3><a name="2.7MigrationGuide-NewFeatures"></a>New Features</h3>

	<li>New <a href="/confluence/display/CXF20DOC/UDP+Transport" title="UDP Transport">UDP
	<li>New optional <a href="/confluence/display/CXF20DOC/Asynchronous+Client+HTTP+Transport"
title="Asynchronous Client HTTP Transport">HTTP transport</a> based on <a href=""
class="external-link" rel="nofollow">Apache HTTP Components HttpAsyncClient</a>.</li>
	<li>Support for the <a href="/confluence/display/CXF20DOC/SOAP+over+UDP" title="SOAP
over UDP">SOAP over UDP</a>.</li>
	<li>Ability to only apply schema validation to incoming or outgoing messages by setting
the "schema-validation-enabled" property to "IN", "OUT", "BOTH", or "NONE".   @SchemaValidationEnabled
annotation updated to have a type=IN|OUT|BOTH|NONE parameter.</li>
	<li>Support for <a href="/confluence/display/CXF20DOC/WS-Discovery" title="WS-Discovery">WS&#45;Discovery</a>.
		<li>Services can send Hello/Bye when started/stopped as well as respond to Probe requests</li>
		<li>API for sending probes and resolving to EndpointReferences</li>
	<li>Initial support for parts of the <a href=""
class="external-link" rel="nofollow">JAX-RS 2.0 (JSR-339)</a> specification
		<li>Additional methods on WebClient to provide <a href=""
class="external-link" rel="nofollow">asynchronous invocations</a></li>
		<li>Support for new filters, interceptors, dynamic features, exception classes, and
more, please see <a href="/confluence/display/CXF20DOC/JAX-RS+Basics" title="JAX-RS Basics">JAX&#45;RS
Basics</a> for more information.</li>

<h3><a name="2.7MigrationGuide-APIChanges"></a>API Changes</h3>

	<li>The HTTPConduit class has been made abstract with the HttpURLConnection related
code moving to an URLConnectionHTTPConduit.   Several method calls of the HTTPConduit that
used to take HttpURLConnection objects have been eliminated.  Also, most methods taking a
URL object now take a URI object instead.   The HTTPConduit.WrappedOutputStream class is also
now abstract.   If you have custom subclasses of HTTPConduit, changing them to subclass URLConnectionHTTPConduit
will likely work.</li>

	<li>The WS-Addressing related VersionTransformer and MAPCodec classes have been changed
to not encode the WS-Addressing headers to  DOM elements and instead just use the Header list
on the SoapMessage directly.  This did change the parameters on the encode methods to take
the JAXBContext instead of the Marshaller.  Any custom VersionTransformers will need to be
updated.  (very rare)</li>

	<li>All methods that took or returned org.apache.cxf.feature.AbstractFeatures have
been changed to just use org.apache.cxf.feature.Feature.</li>
	<li>JAX-RS: 3 classes have been removed from the org.apache.cxf.jaxrs.client package:
ResponseReader, ServerWebApplicationException, ClientWebApplicationException. The first class
in the list is not needed with JAX-RS 2.0 Response class, the latter two are replaced by

        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;">
            <a href=""
class="grey">Change Notification Preferences</a>
        <a href="">View
        <a href="">View
        <a href=";showCommentArea=true#addcomment">Add

View raw message