I'm creating a jaxws client and want to use the same jaxbcontexts used to marshal the jaxb objects to xml to also marshal to json in a Handler for indexing the web service requests and responses in elastic search. The default JAXBContext can't marshal to json, so i need to use moxy. I tried using jackson (ie. not use a jaxbcontext at all) for serializing to json but when it came to deserialization from json to an object, it couldn't handle some cases (object inheritance etc). I found using moxy i could reuse the same jaxbcontext using by the dispatcher and it handled complex deserialization better than anything else.
Wouldn't the container (and cxf) still use com.sun.xml.bind.v2.runtime.JAXBContextImpl even if you removed META-INF/services folder from tomee/lib/jaxb-impl.jar? I just need my deployed app to use moxy, not the container libs. -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/tomee-and-moxy-tp4671723p4671726.html Sent from the TomEE Users mailing list archive at Nabble.com.
