Changing jax-b implementation



my websphere uses some IBM propertiary jaxb implementation which is not compatible with something I'm using. I included the one I'd like to use in the classpath but the application uses still the default one. I've read that I can change the implementation by:




  1. Creating a file called jaxb.properties where my domain jax-b annotated classes reside in which contains something like


    javax.xml.bind.context.factory=com.sun.xml.bind.v2.runtime.JAXBContextImpl




The problem with this approach is that those classes are outside the project I'm developing.



  1. Creating a file javax.xml.bind.JAXBContext just like in http://ift.tt/1uV8kRl in Discovery of JAXB implementation chapter. The problem is I can't figure out what should be inside of it and have no easy way to test it. Can anyone tell me what standard service descriptor convention is? How this file should look like if I'd like to use com.sun.xml.bind.v2.runtime.JAXBContextImpl as the implementation of jaxb?


Thanks!


No comments:

Post a Comment