You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 19 Next »

Major Notes

  • 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.

New Features

  • New UDP Transport.
  • New optional HTTP transport based on Apache HTTP Components HttpAsyncClient.
  • Support for the SOAP over UDP.
  • 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.
  • Support for WS-Discovery.
    • Services can send Hello/Bye when started/stopped as well as respond to Probe requests
    • API for sending probes and resolving to EndpointReferences
  • Initial support for parts of the JAX-RS 2.0 (JSR-339) specification
    • Additional methods on WebClient to provide asynchronous invocations
    • Support for new filters, interceptors, dynamic features, exception classes, and more, please see JAX-RS Basics for more information.

API Changes

  • 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.
  • 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)
  • All methods that took or returned org.apache.cxf.feature.AbstractFeatures have been changed to just use org.apache.cxf.feature.Feature.
  • 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 javax.ws.rs.WebApplicationException and javax.ws.rs.client.ClientException
  • No labels