基于模块化框架的服务容器的设计与实现
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
构建开放式、可扩展的系统设计工具集成框架是实现分布式协作开发的关键技术之一。使用Web服务技术,将系统设计工具的功能模块以服务形式加入到集成框架中,可以很好地满足分布式协作应用的需求,降低开发的复杂度。因此,需要为整个集成框架提供一个可靠的服务运行时环境。现有的服务容器在服务开发时将功能实现逻辑与容器的处理逻辑绑定在一起,使得服务与所在容器产生了紧耦合,增加了服务开发和维护的工作量,导致服务无法动态加载。
     针对上述问题,本文提出并构建了一个组件化的、可动态扩展的Web服务容器——基于模块化框架的服务容器,并在容器和服务之间使用Python语言嵌入式技术引入动态语言模块,分离了容器的处理实现和服务的功能实现,提高了服务的开发效率。此外,文中还分析了服务容器对并发机制的响应效率。针对响应效率低下,设计并实现了一种支持并发机制的服务组件调用框架,缩短了服务容器对并发服务调用请求的响应时间,提高了系统的运行效率。
     实验证明,基于模块化框架的服务容器有效降低了容器和服务开发之间的耦合度,保证了服务开发的效率和服务运行的稳定性。
Constructing an open and scalable integrated framework of system designing tools is one of the key technologies of the distributed collaborative-development realization. By web services technologies, modules of designing tools can be wrapped as web services and integrated into the framework, which will not only satisfy the requirement of the distributed collaborative application well but also reduce the complexity of their development greatly. Therefore, it is necessary to provide a reliable service runtime environment for the framework. However, available service containers bind the function realization codes and the container process codes together in the service developing, thus the service is tight-coupled with the container, which increases the work load of developing and maintaining and makes the dynamically loading of services impossible.
     In order to resolve problems above, a combinative and dynamic extended web services container is proposed, which is also named a Modular Framework based Service Container. Python embedding technology is introduced in as a dynamic language module to separate the implementation of the container process and service function, which improves the development efficiency obviously. Moreover, the response efficiency of service container to concurrent mechanism is also analyzed in this paper. For this problem a service component invocating framework is designed and implemented in this paper, which reduces the response time of service container to the concurrent service request sharply and improves the efficiency of the system greatly.
     Experiments show that the Modular Framework based Service Container effectively reduces the coupling degree between the container and services development, so as to make the service development more efficient and the operation the service more stable.
引文
[1]OSGi Service Platform Core Specification Release4, Version4.1. OSGi Alliance Aprial 2007. http://www.OSGi.org/Download/File?url=/download/r4v41/r4.core.pdf.
    [2]OSGi Service Platform Service Compendium Release4, Version4.1. OSGi Alliance Aprial 2007. http://www.OSGi.org/Download/File?url=/download/r4v41/r4.cmpn.pdf.
    [3]gSoap 2.7.11 User Guide, http://gsoap2.sourceforge.net/.2008.10.
    [4]Borja S. The Globus Toolkit 4 Programmer's Tutorial, http://gdp.globus.org/ GlobusToolkit 4-tutorial/singlehtml/progtutorial_0.1.html
    [5]刘诚忠,刘万涛,胡春明.基于SEDA架构的网络服务容器的设计与实现.北京航空航天大学学报.2008,3,34(3).337.
    [6]胡建强,王怀民,贾焰.Web服务容器框架研究与实现.中国科协第二届优秀博士生学术年会论文集.269.
    [7]张仕,黄林鹏.基于OSGi的服务动态演化[J].软件学报.2008,19(5).1201-1211.
    [8]Lee Seungkeun, Kim/intae, Rim Kiwook, et al. Service Mobility Manager for OSGi Framework[M]//LNCS,2006 3983:21-29.
    [9]张仁忠,韩雷,倪长顺等.分布交互仿真研究.哈尔滨工程大学学报.1999,20(2).34-40.
    [10]Eric Newcomer. Understanding Web Service XML, WSDL, SOAP, and UDDI. Addison Wesley, May 13.2002.
    [11]简斌,左荣国,闫光荣等.基于SOA的中小制造企业应用集成系统研究.计算机工程.2007,33(5).243-245.
    [12]张明宝,夏安邦.基于面向服务体系架构的敏捷虚拟企业信息系统框架[J].计算机集成制造系统,2004,(8):985-990.
    [13]IBM Corporation. BM WebSphere Enterprise Service Bus (ESB) [EB/OL]. [2007-09-01]. http://www-128.ibm.com/developopenworks/cn/websphere
    [14]ObjectManagement Group. The Common object request broker. Architecture and specification [EB/OL]. [2009-09-01]. http://www.omg.org.
    [15]林建. 紧紧抓住整合的钥匙: 中间件架构概念ESB.http://www.chinabyte.com/Enterprise/218709381208866816/20050121/1904071.s html#,2005-1-21.
    [16]IBM Corporation, Microsoft Corporation. Web Services Conceptual Architecture. http://www.microsoft.com/net/wsca.pdf.
    [17]Hu Jiangqiang, Zhou Bin, Jia Yan, et al. Research and Implementation of CORBA Web Services. Proceeding of COMWIM of 23rd.2004.
    [18]Extensible Markup Language (XML) 1.0 (Fourth Edition).W3C Recommendation 16 August 2006. http://www.w3.org/TR/REC-xml/#sec-intro
    [19]宋宇宁.基于SOA的事件驱动企业应用集成技术研究:[学位论文].浙江大学,2005.
    [20]Marechaux J L. Combining Service-oriented Architecture and Event-driven Architecture Using an Enterprise Service Bus. IBM Developworks, Mar 2006
    [21]Banavar G, Chandra T D, Mukherjee B, et al, An efficient multicast protocol for content-based publish-subscribe systems In International Conference on Distributed Conputing Systems,1999.262-272.
    [22]喻坚,韩燕波著.面向服务的计算原理和应用[M].北京:清华大学出版社,2006:4.
    [23]Charles Aulds著.马树奇,金燕译. Linux Apache Web Server管理指南[M].北京:电子工业出版社.2001:25-26.
    [24]Apache的prefork和workder模式http://zhengdl126.javaeye.com/blog/450620.
    [25]肖和平,韩伟红,贾焰,吴泉源StarCCM2.0中高性能线程池模型的研究与实现[J].计算机工程.2005年24期.
    [26]Hamid Ben Malek, Jacques Durand. A SOAP Container Model for e-Business Messaging Requrements. Web Information System Engineering-WISE 2005, Volume 3806/2005.
    [27]N.Desai and M.P.Singh,"Protocol-Based Business Process Modeling and Enactment," presented at IEEE International Conference on Web Services (ICWS04):2004.
    [28]Dianfu Ma, Hui Li, Min Liu. Transform Technique between BPEL Based Figure and XML File [P].200510114689.1,2005-10-28.
    [29]张江河,葛玮,董云卫等.Web应用的负载测试策略研究[J].微机发展.2005年03期.

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700