Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Different JAXB Implementations

Sverre Moe
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic