Note: I'm the EclipseLink JAXB (MOXy) lead and a member of the JAXB (JSR-222) expert group.
If you use MOXy as your JAXB provider then you can use your TransitionXML
class as is. This is because MOXy will not attempt to create metadata for classes in a java
or javax
package such as java.lang.Thread
.
You can obtain the MOXy binary from the following location:
To specify MOXy as your JAXB provider you need to put a file called jaxb.properties
in the same package as your domain classes with the following entry (see: http://blog.bdoughan.com/2011/05/specifying-eclipselink-moxy-as-your.html).
javax.xml.bind.context.factory=org.eclipse.persistence.jaxb.JAXBContextFactory