Global Java Type Adapters in MOXy
As workaround it's possible to wrap all needed instances with some custom type:
public class MyJodaTime { @XmlValue @XmlJavaTypeAdapter(JodaTimeAdapter.class) public DateTime value;}
Filed a bug for this.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=478404
Workaround I currently use:Create OXM bindings configuration dynamically at runtime and save it in memory as a String. Then feed it to MOXy via "eclipselink.oxm.metadata-source" property, using StringReaders.