Skip to main content
Jump to: navigation, search

Difference between revisions of "EclipseLink/FAQ/MOXy"

Line 1: Line 1:
== What is EclipseLink MOXy?==
== What is EclipseLink MOXy?==

Revision as of 09:51, 4 August 2009

What is EclipseLink MOXy?

MOXy is EclipseLink's Object to XML Mapping services. MOXy allows for a POJO object model to be mapped to an XML schema. The Java Architecture for XML Binding (JAXB) provides a Java standard for object XML mapping (OXM). MOXy supports JAXB, as well as providing its' own native API and integration with Web Services.

How does EclipseLink MOXy differ from the JAXB reference implementation?

EclipseLink MOXy offers additional benefits versus usage of the JAXB reference implementation. These include:

  • Greater flexibility with meet-in-the-middle mapping
  • Integrated support for usage with EclipseLink JPA
  • Specific support for usage with SOA and SCA
  • Transaction XML Storage

Meet in the Middle Mapping

In addition to the schema-to-Java and Java-to-schema approaches offered by standard JAXB, EclipseLink JAXB offers meet in the middle mapping. Meet-in-the-middle mapping allows you to map your own classes to your own XML schema. The mapping is XPath based, this breaks the one-to-one correspondence between classes and XML elements in your schema. The mapping isolates the object model from changes in the XML schema and vice versa.

The mapping is built on the same framework as EclipseLink's object-relational mapping and benefits from all that customer input. There is an external representation for the metadata.

JPA Compatibility

EclipseLink JAXB extensions to map compound keys EclipseLink JAXB extensions to map back-pointers When using EclipseLink JPA, EclipseLink MOXy can be made aware of such enhancements as lazy loading and change tracking.

EclipseLink JAXB in your SOA

EclipseLink JAXB was designed to turn your JPA applications into SOA components. Through the meet-in-the-middle mapping and JPA compatibility you can map your existing JPA models to industry standard schemas. Not using JAX-WS? You can use our POJO/SDO bridge to expose your data as SDO (JSR-235, EclipseLink is the RI) Data Objects. The bridge leverages EclipseLink JAXB.

Transactional XML Storage

Interacting with a persistent data store based on XML? Since EclipseLink MOXy is built on the EclipseLink Foundation you can combine MOXy mappings and EclipseLink's persistence framework to interact with your data through JCA.

Back to the top