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.activationhave been moved into a separateaxiom-javax-activationJAR. 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-activationand update dependencies and package names as needed. -
The legacy
AttachmentsAPI has been moved into a separateaxiom-legacy-attachmentsJAR. This API is still used by Axis2, but new code should useMultipartBodyinstead. The (previously deprecated) methods inOMXMLBuilderFactorythat refer toAttachmentshave been removed. To continue using theAttachmentsclass, call thegetMultipartBodymethod 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 (
Blobwrapped)DataHandlerobjects linked toOMTextnodes by default. This behavior now needs to be enabled explicitly by setting theContentTypeProviderandContentTransferEncodingPolicyon theOMOutputFormattoDataHandlerContentTypeProvider.INSTANCEandConfigurableDataHandler.CONTENT_TRANSFER_ENCODING_POLICYrespectively. -
APIs that have been updated to remove the dependency on
DataHandlerhave also been changed to make use ofContentTypeinstead ofStringwhere this is relevant.
Jira issues completed for 2.0.0:
Bug
Improvement
- [AXIOM-506] - Upgrade to org.glassfish 3.0.1 and jakarta packages


