欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

开张了 EclipseSOAPRESTXMLperformance 

程序员文章站 2024-01-11 21:45:28
...
今天开张,给自己的目标。每周写一篇学习笔记。监督自己是否一直在浪费生命。
1今天研究了下Axis2和Xfire

Codehaus XFire is a next-generation java SOAP framework. Codehaus XFire makes service oriented development approachable through its easy to use API and support for standards. It is also highly performant since it is built on a low memory StAX based model.


Axis 比较有趣的是AXIOM.可以只解析用户需要的SOAP部分,从而减少内存占用

AXIs Object Model (AXIOM) is an XML object model designed to improve both memory use and performance during XML processing and is based on pull parsing. By using the Streaming API for XML (StAX) pull parser, AXIOM (also referred to as OM) can control the parsing process to provide deferred building support. Deferred building is the ability of AXIOM to partially build the object model while the rest of the model is built based the user's need.

2)还学习了WS reliable client 的思想,通过自定义异常处理,将消息缓存,并进行处理。

3)Eclipse中的Adapter模式使用
资源如FIle...,需要在树形结构中察看属性,因此要实现iPopertySource接口
实现方式:
Eclipse中的iFile 实现了 iAdaptable接口,因此可