Apache Axiom 2.0.0 Release Note
Axiom 2 introduces breaking changes to remove the dependency of axiom-api
on classes in the
javax.activation
package, in particular DataHandler
:
-
Some classes that depend on
javax.activation
have been moved into a separateaxiom-javax-activation
JAR. In some cases the package name has also been changed to avoid split packages. If you encounter a missing class during migration, check whether that class exists inaxiom-javax-activation
and update dependencies and package names as needed. -
The legacy
Attachments
API has been moved into a separateaxiom-legacy-attachments
JAR. This API is still used by Axis2, but new code should useMultipartBody
instead. The (previously deprecated) methods inOMXMLBuilderFactory
that refer toAttachments
have been removed. To continue using theAttachments
class, call thegetMultipartBody
method and pass the result toOMXMLBuilderFactory
. -
Because of these changes the XOP/MTOM serializer no longer infers the content type and content transfer encoding of non-root parts from (
Blob
wrapped)DataHandler
objects linked toOMText
nodes by default. This behavior now needs to be enabled explicitly by setting theContentTypeProvider
andContentTransferEncodingPolicy
on theOMOutputFormat
toDataHandlerContentTypeProvider.INSTANCE
andConfigurableDataHandler.CONTENT_TRANSFER_ENCODING_POLICY
respectively. -
APIs that have been updated to remove the dependency on
DataHandler
have also been changed to make use ofContentType
instead ofString
where this is relevant.
Jira issues completed for 2.0.0:
Bug
Improvement
- [AXIOM-506] - Upgrade to org.glassfish 3.0.1 and jakarta packages