推荐的JAX-WS框架,用于处理Moxy [英] A recommended JAX-WS framework for working with Moxy

查看:70
本文介绍了推荐的JAX-WS框架,用于处理Moxy的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我正在使用CXF,但由于CXF中的以下代码:

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加载Moxy和RI JAXB上下文(可能取决于非标准API )。$
在我的情况下,启动时间和内存的开销太高。

我正在寻找一个好的开源JAX-WS实现(CXF替换),它可以工作正如预期的那样使用Moxy。

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.

推荐答案

可以轻松配置JAX-WS的Metro实现(GlassFish使用)可以使用MOXy作为JAXB提供者。

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

在WebLogic版本12.1.1中,MOXy是默认的JAXB实现(包括JAX-WS使用的实现)。

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

对于任何其他MOXy无法实现的JAX-WS实现配置为JAXB提供程序,可以通过提供程序机制使用它:

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

这篇关于推荐的JAX-WS框架,用于处理Moxy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆