Jump to: navigation, search

Difference between revisions of "EclipseLink/Examples/MOXy/JAXB/SpecifyRuntime"

< EclipseLink‎ | Examples‎ | MOXy‎ | JAXB
(New page: ==Specifying the EclipseLink MOXy Runtime== You will need to have the JAXB APIs (included in Java SE 6) and eclipselink.jar ([http://www.eclipse.org/eclipselink/downloads/ download site])...)
 
m (added xref to user guide)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
==Specifying the EclipseLink MOXy Runtime==
+
{{EclipseLink_DocWiki
 +
|link=EclipseLink/UserGuide/MOXy/Runtime/Specifying_the_EclipseLink_Runtime}}
 +
 
 +
== Overview ==
 +
 
 +
The JAXB specification defines a standard runtine.  EclipseLink MOXy is one implementation of this runtime.  In this example you will learn how to specify that EclipseLink MOXy is the JAXB provider.
 +
 
 +
== Specifying the EclipseLink MOXy Runtime ==
  
 
You will need to have the JAXB APIs (included in Java SE 6) and eclipselink.jar ([http://www.eclipse.org/eclipselink/downloads/ download site]) on your classpath.
 
You will need to have the JAXB APIs (included in Java SE 6) and eclipselink.jar ([http://www.eclipse.org/eclipselink/downloads/ download site]) on your classpath.

Latest revision as of 10:08, 4 January 2011

Overview

The JAXB specification defines a standard runtine. EclipseLink MOXy is one implementation of this runtime. In this example you will learn how to specify that EclipseLink MOXy is the JAXB provider.

Specifying the EclipseLink MOXy Runtime

You will need to have the JAXB APIs (included in Java SE 6) and eclipselink.jar (download site) on your classpath.

To specify the EclipseLink MOXy (JAXB) runtime should be used you need to add a file called jaxb.properties in the same package as the domain classes with the following entry.

javax.xml.bind.context.factory=org.eclipse.persistence.jaxb.JAXBContextFactory