specify alternate JAXB provider
In my Grails app, I want to use EclipseLink as the JAXB provider. I tried adding a file grails-app\conf\jaxb.properties
with the contents
javax.xml.bind.context.factory=org.eclipse.persistence.jaxb.JAXBContextFactory
But it seems the default JAXB provider is still being used. I've confirmed that the relevant JARs for EclipseLink are on my runtime classpath.
The jaxb.properties
file needs to be added in the same package as your domain classes:
- http://blog.bdoughan.com/2011/05/specifying-eclipselink-moxy-as-your.html
精彩评论