Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "EclipseLink/Examples/MOXy/Spring/JAXBAnnotations"
< EclipseLink | Examples | MOXy | Spring
(New page: Spring/JAXBAnnotations In order to use EclipseLink JAXB with Spring, all that is required is a <code>jaxb.properties</code> file and <code>eclipseli...) |
|||
Line 1: | Line 1: | ||
[[Category:EclipseLink/Examples/MOXy|Spring/JAXBAnnotations]] | [[Category:EclipseLink/Examples/MOXy|Spring/JAXBAnnotations]] | ||
− | In order to use EclipseLink JAXB with Spring, all that is required is a | + | In order to use EclipseLink JAXB with Spring, all that is required is a [[jaxb.properties]] file and [[EclipseLink]]. No other configuration is required. |
== jaxb.properties == | == jaxb.properties == | ||
− | Following is the <code>jaxb.properties</code> file that tells Spring to use EclipseLink JAXB: | + | Following is the <code>jaxb.properties</code> file that tells Spring to use EclipseLink JAXB - this properties file needs to be on the classpath: |
<source lang="text"> | <source lang="text"> | ||
javax.xml.bind.context.factory = org.eclipse.persistence.jaxb.JAXBContextFactory | javax.xml.bind.context.factory = org.eclipse.persistence.jaxb.JAXBContextFactory | ||
</source> | </source> | ||
+ | |||
+ | == EclipseLink == | ||
+ | The latest version of EclipseLink can be found on the [http://www.eclipse.org/eclipselink/downloads/ EclipseLink download] page. The <code>eclipselink.jar</code> file needs to be on the classpath. | ||
+ | |||
+ | == Configuration: applicationContext.xml == |
Revision as of 13:28, 27 July 2010
In order to use EclipseLink JAXB with Spring, all that is required is a jaxb.properties file and EclipseLink. No other configuration is required.
jaxb.properties
Following is the jaxb.properties
file that tells Spring to use EclipseLink JAXB - this properties file needs to be on the classpath:
javax.xml.bind.context.factory = org.eclipse.persistence.jaxb.JAXBContextFactory
EclipseLink
The latest version of EclipseLink can be found on the EclipseLink download page. The eclipselink.jar
file needs to be on the classpath.