A recommended JAX-WS framework for working with Moxy

荒凉一梦 提交于 2019-12-07 09:46:38

问题


Currently I'm working with CXF but because of the following code in CXF:

// fall back if we're using another jaxb implementation
try {
 riContext = JAXBUtils.createRIContext(contextClasses
           .toArray(new Class[contextClasses.size()]), tns);
}

CXF loads both Moxy and the RI JAXB context (Probably depends on non standard APIs).
The overhead in startup time and memory is too high in my case.
I'm looking for a good open source JAX-WS implementation (CXF replacement) which will work with Moxy as expected.


回答1:


The Metro implementation of JAX-WS (that GlassFish uses) can easily be configured to use MOXy as the JAXB provider.

  • http://blog.bdoughan.com/2012/02/glassfish-312-is-full-of-moxy.html

In WebLogic as of version 12.1.1 MOXy is the default JAXB implementation (including the one used by JAX-WS).

  • http://blog.bdoughan.com/2011/12/eclipselink-moxy-is-jaxb-provider-in.html

For any other JAX-WS implementation where MOXy can't be configured as the JAXB provider it can be used via the Provider mechanism:

  • http://blog.bdoughan.com/2013/02/leveraging-moxy-in-your-web-service-via.html



回答2:


The 3.0.0-milestone2 version of CXF should handle Moxy quite a bit better. That said, there are still bugs in Moxy that have prevented all of the CXF unit and system tests to pass with it so we don't have the same level of confidence with Moxy as we do with the JAXB RI.



来源:https://stackoverflow.com/questions/22295616/a-recommended-jax-ws-framework-for-working-with-moxy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!