摘要: 在实际应用中,RMI经常会因为通过网络传递参数需要花费太多时间,影响RMI的性能。该文在分析序列化技术的基础上,提出一种新的基于序列化的RMI方法,并给出该方法的设计思想和具体实现。实际应用表明,该方法能够有效减少RMI通过网络传输的字节流的长度,缩短RMI的调用时间,加强RMI的性能。
关键词:
RMI,
序列化,
Stub
Abstract: In practical applications, RMI often spends too much time in sending parameters through the network, which hinder the performance of RMI. This paper designs and implements a new method for RMI based on serialization. The application results show that the method can decrease the length of byte stream, shorten the invoke time, and improve the performance.
Key words:
RMI,
Serialization,
Stub
中图分类号:
戴 亮;方晓勤;李 丽. 一种新的基于序列化的Java RMI方法[J]. 计算机工程, 2006, 32(22): 99-101.
DAI Liang; FANG Xiaoqin; LI Li. A New Method for Java RMI Based on Serialization[J]. Computer Engineering, 2006, 32(22): 99-101.