Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes XML and Related Technologies and the fly likes Different JAXB Implementations Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Different JAXB Implementations" Watch "Different JAXB Implementations" New topic

Different JAXB Implementations

Sverre Moe
Ranch Hand

Joined: Jul 10, 2007
Posts: 110
I reckon most people uses the default JAXB implementation. Lately I have been checking to see what else is out there and if these other implementations are any better or worse.
The information is scarce, but what I did find is Eclipse MOXy and Apache Camel.

One can choose which implementation to use by indicating the context factory within a file in each java package containing JAXB files.

Both Oracle JDK and OpenJDK are using the same Sun JAXB implementation. This is actually the default one and does not require a file.

Eclipse MOXy

Apache Camel

Spring OXM
Spring does not use the JAXBContext to retrieve Marshalling and Unmarshalling. Instead one configures Jaxb2Marshaller and Jaxb2Unmarshaller directly. Though I'm not quite sure if Spring is compatible with JAXB own marshalling and unmarshalling interfaces, becuase Spring oxm brings its own interfaces for those.

I could not find any information of pros and cons of each of these over the others. Neither could I find any other JAXB implementation.

Does anyone have experience in using either Eclipse MOXy or Apache Camel for JAXB?
Anyone know of other JAXB implementations which offer benefits over the default one supplied by the JDK?
I agree. Here's the link:
subject: Different JAXB Implementations