首页 | 官方网站   微博 | 高级检索  
     

EJB中用JMS模拟多线程机制的设计和实现
引用本文:高燕,李旭伟,文震.EJB中用JMS模拟多线程机制的设计和实现[J].微机发展,2004,14(7):40-42.
作者姓名:高燕  李旭伟  文震
作者单位:四川大学计算机学院,四川大学计算机学院,四川大学计算机学院 四川成都610064,四川成都610064,四川成都610064
摘    要:多线程机制是提高系统执行效率的关键,但对于采用EJB技术的服务器端,由于EJB规范限制使用多线程机制,因此执行效率往往不那么令人满意。针对EJB中不能使用线程这一缺陷,文中给出了在EJB中如何用JMS来模拟多线程机制并提供了一个具体的实现方案,将该方案用于网管系统中并发的获取各网络设备的MIB信息以计算某一网络性能指标时取得了令人满意的成绩,大大缩短了系统运行的时间。从而可知在EJB中采用JMS技术来模拟多线程机制不仅在理论上可行,在实际应用中也是可行的。

关 键 词:EJB技术  多线程机制  JMS  J2EE规范  软件执行效率
文章编号:1005-3751(2004)07-0040-03
修稿时间:2003年10月16

Design and Implementation of Simulating Multithread Architecture with JMS in EJB
GAO Yan,LI Xu-wei,WEN Zhen.Design and Implementation of Simulating Multithread Architecture with JMS in EJB[J].Microcomputer Development,2004,14(7):40-42.
Authors:GAO Yan  LI Xu-wei  WEN Zhen
Abstract:It is a kind of key technology of multithread architecture to improve system executive efficiency, but server uses EJB technology has not satisfying executive efficiency, because EJB technology prohibits developers from using multithread architecture. This paper has explained how to simulate multithread architecture with JMS and presented a design according to the fact that multithread architecture can not be used in EJB, when network management system uses the design to collect MIB information of network devices by which a network performance index can calculated, the result is very good and executive time is shortened. So the design of simulating multithread architecture with JMS in EJB is feasible not only in theory, but also in application.
Keywords:multithread architecture  EJB  JMS  
本文献已被 CNKI 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号