Apache Tomcat中的JAX-RPC / JAX-WS运行时 [英] JAX-RPC / JAX-WS runtime in Apache Tomcat

查看:284
本文介绍了Apache Tomcat中的JAX-RPC / JAX-WS运行时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Apache Tomcat v6服务器。在创建新的Web服务时,我获得了Apache Axis,Apache Axis2和Apache CXF2.x的Web服务运行时选项。

I am using Apache Tomcat v6 server. While creating a new Web Service, I get the Web service runtime options for "Apache Axis", "Apache Axis2" and "Apache CXF2.x".

是否可能将运行时设为JAX-RPC或Jax-WS?

Is it possible to have the runtime as "JAX-RPC" or "Jax-WS"?

编辑:

我正在使用Eclipse IDE

I am using Eclipse IDE

推荐答案

JAX-RPC和JAX-WS是规范,Axis,Axis2和CXF是实现。

JAX-RPC and JAX-WS are specifications, Axis, Axis2 and CXF are implementations.


  • 对于JAX-RPC,您需要Axis(1)

  • 用于JAX- WS使用CXF(我相信Axis2也支持此规范,但我从未使用过它)

如果您有选择我强烈推荐后者(JAX-WS),因为它是更现代的规范,更重要的是工具包正在积极开发和更新 - Axis 1多年来一直处于休眠状态,依赖于许多其他库的旧版本。

If you have a choice I strongly recommend the latter (JAX-WS) as it's the more modern spec and more importantly the toolkits are being actively developed and updated - Axis 1 has been dormant for years and relies on old versions of a number of other libraries.

使用更现代的工具包如CXF或Axis2,你也可能获得更好的性能从一开始就使用流式XML API进行签名,而不是在内存中构建树模型。

You're also likely to get better performance with a more modern toolkit like CXF or Axis2, which has been designed from the beginning to use streaming XML APIs wherever possible, rather than building a tree model in memory.

这篇关于Apache Tomcat中的JAX-RPC / JAX-WS运行时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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