java之socket之SDP协议简介.docx

  1. 1、本文档共5页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
java 之 socket 之 SDP 协议简介 SDP support is essentially aTCPbypass technology. 和 TCP 有重要的关系) When SDP is enabled and an application attempts to open a TCP connection, the TCP mechanism is bypassed and communication goes directly to the IB network.For example, when your application attempts to bind to a TCP address, the underlying software will decide, based on information in the configuration file, if it should be rebound to an SDP protocol. This process can happen during the binding process or the connecting process (but happens only once for each socket). There are no API changes required in your code to take advantage of the SDP protocol: the implementation is transparent and is supported by the classicnetworking (java.net) and the New I/O (java.nio.channels) packages 会用到 net 和 IO ). See the Supported Java APIs section for a list of classes that support the SDP protocol. SDP support is disabled by default. (默认是关闭的,需要 两步来打开) The steps to enable SDP support are: Create an SDP configuration file. Set the system property that specifies the location of the configuration file. 用 JWSDP 将 java 和 Web 服务结合起来 Sun 的 Java Web 服务开发工具包( JWSDP )能够让你完全使用 Java 编程语 言来编写 Web 服务,但是这些工具的数量和复杂性可能会 让使用 JWSDP 的新程序员束手无策。 JWSDP 支持行业标 准,这就能够确保其与标准组织所发布的技术和规范具有互 操作性,例如万维网协会( W3C )以及结构信息标准推动组 织(OASIS )等。JWSDP还提供多种辅助工具, 例如 WSDL stub 编译器,它能够生成一个 WSDL 文件,用于 Web 服务 和独立的 Web 服务 UDDI 2.0 注册表。 JWSDP 还能和 Apache Tomcat 以及一些 Ant 的任务捆绑工作, 这就让你能 够在 Tomcat 内注册和治理 Web 服务。 JWSDP 的编程接 口一般被分成两个大类:一类用来处理 xml 文档,另一类用 来处理远程过程( remote PRocedure )。 面向文档的 API 有: 用于 XML 处理( JAXP )的 Java API 用于 XML 绑定的( JAXB )的 Java 架构 面向远程过程的 API 有: 用于基于 XML 的 RPC ( JAX-RPC )的 Java API 用于 XML 注册表( JAXR )的 Java API 用于 XML 信使服务( JAXM )的 Java API 现在让我们将每 个 API 集分开,看看我们能够用每个 API 来做些什么。 JAXP JAXP 为剖析和转换 XML 文档公开了一些可插入的 API ,这 样就不再需要专门的 XML 处理器了。 JAXB API。JAXB 为基于 XML 的 Java API。 JAXB 为映射 XML 文档和 Java 对象提供了工具、 API 和框 架。为把 XML 结构描述转变成为 Java 类,它还提供了一个 编译器。绑定框架让进出的 XML 文档的错误和验证检查成 为可能。 JAX-RPC JAX-RPC 为开发基于 SOAP 的 Web 服务端点( endpoint ) 和客户端公开了

文档评论(0)

zhaoxiaoj + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档