用户名: 密码: 验证码:
Webframe应用服务器中Web容器的设计与实现
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
  • 英文题名:The Design and Implimetation of Web Container in Webframe Application Server
  • 作者:张锋
  • 论文级别:硕士
  • 学科专业名称:计算机应用技术
  • 学位年度:2003
  • 导师:陈崚 ; 钟华
  • 学科代码:081203
  • 学位授予单位:扬州大学
  • 论文提交日期:2003-04-01
  • 答辩委员会主席:张天平
摘要
随着计算机网络越来越深入人们的生活、工作和学习,企业级的电子商务应用等高级应用正在成为一种强大的驱动力量,并引发了一系列新的观念、新的技术和新的产品。应用服务器则是其中最引人注目的部分。同时,政府逐步开展电子政务,实现信息共享、政务公开和办理服务等。纷繁复杂的应用系统涉及到多种复杂的应用环境、多种操作系统平台和多种数据库平台等,还涉及到复杂的逻辑运算、分布式的应用部署、分阶段分部门的具体实施等高级需求。这势必需要采用应用服务器这样一种统一的运行部署平台。另外,基于国家信息安全等更深层次的问题,中国自主产权的应用服务器产品则是构建政府电子政务等系统的首选。
     在国家863高科技发展计划资助项目、国家重点基础研究发展规划973资助项目的支持下,中科院软件所自主开发了遵循Sun公司J2EE1.3(Java 2 Platform,Enterprise Edition)规范的应用服务器——Webframe应用服务器。Webframe服务器是标准的J2EE应用服务器,支撑多种操作系统平台、多种数据库。它可以作为多业务逻辑性、高可伸缩性、高可靠性的企业级分布式计算平台,适合于电子商务、电子政务、金融业等各种行业的应用需求。该系统已有两个成功的应用案例。
     J2EE规范是SUN公司提出的基于Java2平台,该系统规范可以简化企业应用解决方案的开发、部署和管理。J2EE平台以J2SE(Java 2 Platform,Standard Edition)为基础,继承了标准版中的许多优点,同时提供了对EJB、Java Servlet、JSP、JNDI、JDBC、JTA、JMS等多种技术的全面支持。
     本文就作者在Webframe应用服务器项目中所从事的以下二方面工作及其相关内容做了比较详细的介绍。
     作为中科院软件所Webframe应用服务器的一个子项目,我们设计和实现了Webframe应用服务器中的Web容器。它是对Web服务器的高级扩展,完全支持JavaServlet技术和JSP技术。我们在设计与实现该Web容器的过程中,严格遵循Servlet2.3规范、JSP1.2规范和HTTP1.1协议,深入分析和研究了Web容器软件系统的功能和结构,灵活运用了基于Java平台的软件开发技术、软件工程方法及其多种常用的设计模式。同时,我们还设计与实现了支持Web容器系统运行的系统配置、安全验证、系统日志、系统管理、应用部署等相关系统支持功能。我们采用了软件组件的设计方法,以组件实现各个模块的具体功能。这使得该系统具有很强的可扩展性和软件可复用性。另外,我们还研究了JSP文件翻译、安全连接管理和会话管理等关键技术,并将相关实现技术运用在我们设计与实现的Web容器系统。
    
    扬州大学硕士学位论文
     在研尼b容器的基础上,我们设计和实现了W七b容器集群及其相关的集群管理
    员算法、集群结点分组算法等,并为该W七b容器集群设计和实现了具有负载均衡、
    会话绑定和失效恢复等功能的Hl,1,P反向代理服务器。它有效提高了整个系统对网
    络请求的响应能力、容错能力。对于负载均衡,我们实现了服务器处理能力均衡算
    法,即根据服务器处理能力进行负载均衡。而对会话绑定,我们采用了Cookie和
    URL重写两种方式实现。为了实现失效恢复的功能,我们在认飞b容器中实现了基
    于集群的会话信息复制机制,以保证同组W七b容器会话信息的一致性。在设计和实
    现V尾b容器集群的过程中,我们研究了多种现有的集群技术、负载均衡技术、失效
    恢复技术等多种网络技术。另外,为了简化W亡b容器集群各结点之间的通讯,我们
    自行设计和实现了基于分布式环境的MessageChannels通讯平台。集群信息通讯和
    会话信息复制就是基于这个通讯平台的。这个通讯平台也可以适用于其它的分布式
    系统。
Along with the computer networks going deeper into people's life, work and study, the advanced applications in the enterprises, such as the electronic commerce, are becoming a kind of strong impetus and causing a series of new concepts, new techniques and new products among which application server is the most conspicuous one. At the same time, the government is gradually developing the electronic governmental affairs management, realizing the information sharing, opening the governmental affairs management, and providing the services. The various complicated application systems involve many complicated application environment, operating system platforms and databases. And they also relate to the high level requirements such as complicated logical calculation, distributed application deployment, gradually and sectionally implementation. Consequently, application server is necessary for establishing a uniform platform of performance and deployment. In addition, considering the serious problems such as the nat
    ional information security and so on, the application server with the independent Chinese copyright will be the first choice in the areas such as establishing system of the electronic government affairs.
    Supported by the National High Technology Development 863 Program of China and the National Grand Fundamental Research 973 Program of China, Institute of Software, Chinese Academy of Sciences has developed an application server named as Webframe, which is following the J2EE1.3 specification presented by Sun Microsystems Inc. Webframe Application Server is a standard J2EE application server, supporting various operating systems and various database platforms. It may work as the enterprise distributed computing platform with multi-business logic, high flexibility and high reliability, which is suitable for electronic commerce, electronics governmental affairs, financial institutions, etc.
    The J2EE specification, presented by Sun Microsystems Inc, is a systemic specification based on Java2 platform for simplifying the enterprise solution of development, deployment and management. The J2EE platform is based on J2SE platform, the standard version of Java2 platform. It adopts many advantages of the standard version and comprehensively supports various techniques like EJB, Java Servlet, JSP, JNDI, JDBC, JTA and JMS, etc.
    This paper introduces following two aspects of the work that the auther has engaged
    
    
    in Webframe application server project.
    As a subject of Webframe application server project, we have designed and implemented Web Container of Webframe Application Server. Fully supporting Java Servlet and JSP techniques, it is an advanced extension for web server. In the process of developing Web Container, we follow the Servlet2.3 specification, the JSP 1.2 specification and HTTP 1.1 protocol, apply various of program design techniques, software engineering techniques and some common design patterns based on the Java platform and analyze the functions and software architecture of the Web Container system thoroughly. We design and implement more functions of the Web Container system, including system configuration, security certification, system log, system management and application deployment. Adopting technical concepts of component-based in software engineering, we implement the functions of the models with different software components to make the Web Container system highly extendable and reusable. In addition we also study the key techniqu
    es in implementing the Web Container system such as translation of JSP files, secure connection management and session management.
    Based on the Web Container system, we have designed and implemented the cluster of Web Container, including implementation of the algorithms for defining the manager of the cluster and for calculating the groups of the cluster. We also have designed and implemented a HTTP reverse proxy server with load balancing, session binding and fail-over, etc, which increase the ability of request responding and fault-tolerant. In the HTTP rev
引文
[1] Sun Microsystems, Inc. Java Servlet Specification Version 2.3. 2001
    [2] Sun Microsystems, Inc. JavaServer Pages Specification Version 1.2. 2001
    [3] Sun Microsystems, Inc. Java Servlet Specification Version 2.4. 2002
    [4] Sun Microsystems, Inc. JavaServer Pages Specification Version 2.0. 2002
    [5] Sun Microsystems. Inc. Java2 Platform Enterprise Edition Specification (v1.2) 1999
    [6] Sun Microsystems. Inc. Java2 Platform Enterprise Edition Specification (v1.3) 2001
    [7] Sun Microsystems. Inc. Java2 Platform Enterprise Edition Specification (v1.4) 2002
    [8] Sun Microsystems, Inc. Enterprise JavaBeans Sprcification, v2.0. 2001.
    [9] Sun Microsystems. ECperf Specification (v1.0). 2001
    [10] JAVASERVER PAGES. http://java.sun.com/products/jsp/
    [11] JAVA SERVLET TECHNOLOGY. http://java.sun.com/products/servlet/
    [12] Enterprise JavaBeans Technology. http://java.sun.com/products/ejb
    [13] Java 2 Platform, Enterprise Edition (J2EE). http://java.sun.corn/j2ee/
    [14] Apache Tomcat. http://jakarta.apache.org/tomcat/
    [15] WebSphere Application Servers. http://www-3.ibm.com/software/webservers/
    [16] Jboss Application Server. http://www.jboss.org
    [17] Bea WebLogic Server. hrtp://www.bea.com/framework.jsp?CNT=index.htm&FP=/content/products/server
    [18] Oracle9i Application Server. http://www.oracle.com/ip/deploy/ias/
    [19] Apusic应用服务器. http://www.apusic.com/product/apusic.htm
    [20] TongWeb应用服务器. hrtp://www.tongtech.corn/cpzn/yyfwq.html
    [21] Sun ONE Application Server. http://wwws.sun.com/software/products/appsrvr/home_appsrvr.html
    [22] Sun ONE Middleware. http://wwws.sun.com/software/product_family/middleware.html?productLine=%2Fsoftware%2Fproduct_family%2Fmiddleware.html
    [23] Filip Hanik. In Memory Session Repli-cation in Tomcat 4. http://www.theserverside.com/resources/article.jsp?l=Tomcat
    [24] Shyam Kumar Doddavula. Clustering with Tomcat. http://www.onJava.com/pub/a/
    
    on Java/2002/07/17/tom-cluster.html
    [25] Vivek Viswanathan. Load Balancing Web Applications. http://www.onJava.com/pub/a/onJava/2001/09/26/load.html?page=1
    [26] BEA Systems, Inc. Using WebLogic SSL. http://www.weblogic.com/docs/classdocs/API_secure.html
    [27] SSL Extension for Struts HTTP/HTTPS switching, http://sslext.sourceforge.net/
    [28] Bruce Eckel. Thinking in Java.Prentice Hall.2002
    [29] Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides. Design Patterns: Elements of Reusable Object-Oriented Software. Addison Wesley Longrnan, Inc. 1995
    [30] The Design Patterns Java Companion, JAMES W. COOPER, October 2, 1998
    [31] Bill Burke. Jboss 3.0 Clustering Revision 0.2. 2001
    [32] José Luis Herrerol, Fernando Sánchezl, Miguel Toro2. Fault tolerance AOP approach. 2001
    [33] Deborah Steiner, Helen Grembowicz, Valarie Moore. Oracle9 iAS Web Cache, Administration and Deployment Guide Release 2 (9.0.2). Oracle Corporation. 2002
    [34] Bea WebLogic Server, Using WebLogic Server Clusters, Release 7.0 Revised:September 4,2002
    [35] Bea WebLogic Server, Creating and Configuring WebLogic Server Domains, Release 7.0 Revised:September 4,2002
    [36] Arun Iyengar, Jim Challenger, Daniel Dias, Paul Dantzig. High-Performance Web Site. IBM T.J. Watson Research Center. 2000
    [37] What Is. NET?. http://www.microsoft.corn/net/basics/
    [38] David M. Kristol. HTTP State Management Mechanism. INTERNET DRAFT Bell Laboratories, Lucent Technologies. 1999
    [39] Kai Shen, Tao Yang, Lingkun Chu, JoAnne L. Holliday, Douglas A. Kuschner, and Huican Zhu. Scalable Replication Management and Programming Support for Cluster-based Network Services. University of California at Santa Barbara, CA 93106 fkshen, tyang, lkchu, joanne46, kuschner, hczhug@cs.ucsb.edu.2002
    [40] Scott Stark, Marc Fleury, The JBoss Group. JBoss Administration and Development. JBoss Group LLC. 2001
    
    
    [41] WebSphere Software Platform. http://www-3.ibm.com/software/info1/websphere/index.jsp?tab=products/appserv
    [42] The Server Side Application Server Matrix.http://www.theserverside.com/reviews/matrix.jsp
    [43] Gautam Desai, Eric Sanchez, Joe Fenner. Web application servers come of age. http://www.networkcomputing.com/1215/1215f4.html
    [44] JSP Generator. http://xml.apache.org/cocoon/userdocs/generators/JSPgenerator.html
    [45] JSP/Servlet 中的汉字编码问题.http://www-900.ibm.com/developerWorks/cn/java/jsp_dbcsz/index.shtml
    [46] HTTP state replication, http://www.orionserver.com/docs/http-clustering.html
    [47] Problems creating or using HTTP sessions, http://publib7b.boulder.ibm.com/wasinfo1/en/info/ae/ae/rtrb_httpsessprobs.html
    [48] Web appliation servers come of age. http://www.networkingcomputing.com.
    [49] muliple machines, http://www.redbooks.ibm.com
    [50] failover and recovery in websphere application server advanced Edition 4.0.http://www.ibm.com
    [51] Using BEA weblogic clustering, http://e-docs.bea.com
    [52] WebSphere Scalability WLM and clustering, http://www.ibm.com
    [53] WebSphere Application Server V4.0 for z/OS and OS/390. http://www-3.ibm.com/software/webservers/appserv/zos_os390/
    [54] 仙人掌工作室.JSP应用的安全问题. http://www.fanqiang.com/a5/b3/20011108/0708001547.html
    [55] 网络娇娃工作站.深入理解和改革JSP/Servlet会话管理机制. http://adionline.myrice.com/JSP/Jsp_Servlet_conversation.htm
    [56] Cherami. Servlet 会话. http://www.Javaresearch.org/article/showarticle.JSP?column=2&thread=441
    [57] 陈宁江,金蓓弘,范国闯.多层企业应用的关键:J2EE应用服务器.计算机科学第30卷第1期.2003
    [58] 孙立宏,张顺颐等,用三层C/S模式构建Intranet信息系统。电脑开发与应用,2000年,第13卷第5期。(11—13)
    [59] 陈孝威,陈凌云,三层体系结构的客户机/服务器。计算机应用,2000年1月,第20卷第1期。(23-26)
    
    
    [60] 郭玉刚,三层结构应用软件。中国煤炭经济学院学报,2000年3月,第1期。(92-94)
    [61] Domon, Hougland, Aaron, Tavistock. JSP核心技术.机械工业出版社.2001
    [62] Marty Hall. Servlet与JSP核心技术.机械工业出版社.2001
    [63] 蒋慧,吴礼发,陈卫卫.UML Programming Guide设计核心技术.北京.北京希望电子出版社.2001
    [64] Phil hanna.JSP技术大全.机械工业出版社.2002
    [65] 王迪,黄光斌.JSP网络技术与应用.国防工业出版社2002
    [66] 吴艾.XML/JSP网页编程教程.北京.北京希望电子出版社.2001
    [67] CHEN Weimin.基于机群结构的高性能服务器技术.清华大学计算机系高性能技术研究所.2000
    [68] 张锋,范国闯,林世彪,董伟川.JSP文件翻译中的问题研究及解决方案.中科院研究生院第七届研究生学术论文研讨会.2002
    [69] 林世彪,范国闯,董伟川,张锋.EJB容器的可扩展服务框架的设计和实现.中科院研究生院第七届研究生学术论文研讨会.2002

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

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

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