用户名: 密码: 验证码:
基于EJB组件模型的应用体系结构的设计与实现
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
自20世纪90年代以来,特别是WEB及相关技术,如JAVA的发展,计算机原有的体系结构也从两层的C/S结构发展到现在的三层C/S结构,并逐渐形成流行的J2EE应用体系结构。而基于EJB组件的三层次体系结构是J2EE应用体系结构的重要组成部分。
     本文研究基于EJB组件模型的三层次客户服务器结构的设计与实现,并且在开发过程中引入了源于MVC三部件框架的设计模式,实现了应用中表现逻辑与业务逻辑的分离。同时引入了FACADE模型封装了代表数据模式的EJB,改善了数据存取的性能。此外本文还讨论了如何在一个系统中利用不同的EJB服务器集成异构的数据源,以及如何利用两阶段提交实现分布式异构数据库的数据更新。本文以一个公司的销售管理业务流程实现为例子,利用UML进行系统分析与建模,通过SERVLET访问应用服务器中的EJB业务组件,并利用JSP实坝表现层。本文着重讨论了以CMP方式部署EJB组件,以及实现分布式数据库的数据更新的方法和优势。
     本课题选用IBM公司的webSphere应用服务器为EJB的部署平台,以VisualAgeforJava为开发工具,实现了以EJB组件模型为基础的三层次客户服务器应用。
Since 1990s,whh the development of web and related technologies such as Java technolog, the original computer an hecturehasdewtopedfiom 24edC/Sarcnitecturetothe 3-tiedC/S architecture, and been realizing the popular J2EE application architecture. The EJB-Based 3-tied architecture is one important part of J2EE application architecture.
    This paper focuses on the design and realization of EJB-Based 3-tied C/S structure, and the design model based on the MVC frame is applied in the system development, so that the separation between the present tog^ arnd the business logic in the application is realized In order to improve the performance of data storing and taking, we introduce the FACADE model to encapsulate the EJBs which delegate the data model In addition, how to integrate heterogeneous sources with different EJB servers and how to update the distributed heterogeneous sources with DTP piocess are discussed in this paper. An example of realizing a company's sale-management procedure is demonstrated in this paper, this project is designed by UML, the EJB business components in the application server are visited by a client and system's present layer is realized by the JSPs. This paper concentrates on the ways and advantages of deploying the EJBs by CMP and realizing the update of the distributed heterogeneous sources.
    WebSphere application server of IBM Corporation is chosen as the deployed platform. The 3-tied C/S application based on the EIBs is realized with the VisualAge for Java
引文
[1] [美]jesse feiler 著.Application Servers(powering the web_Based Enterprise),2000年8月
    [2] [美]ron ben-natan ori sasson 著.魏鸿,董晓宇,白刚译.IBM websphere 电子商务解决方案.人民邮电出版社,2001年3月
    [3] EJB 1.0 Specification. Sun Microsystem, 1998年6月
    [4] EJB 2.0 Specification. Sun Microsystem, 2000年6月
    [5] [美]Andrew S.Tanenbaum 著.熊桂喜,王小虎译.计算机网络,1998年7月
    [6] [美]wendy boggs, michael boggs著.丘仲潘译.UML with rational rose 从入门到精通,北京:电子工业出版社,2000年3月
    [7] [美] 刘润东著.UML对象设计与编程,北京:希望电子出版社,2001年3月
    [8] 李贵荣,冬来生,邓必盟,裴龙Java2.0网络多线程编程实例教程,北京:希望电子出版社,2001年1月
    [9] http://www.szptt.net.cn/9810dnwl/new/jfc/ch02.THE MVC Architecture
    [10] [美]Dr. Subrahmanyam Allamaraju 著. NutsAndBolts of TP, Subrahmanyam Allamaraju, 1999年
    [11] http://www.ChinaJavaWorld.com. 分布式编程模式中的租约、事务和分布式事件机制,2001年4月
    [12] http://service2.boulder.ibm.com/devtools/news0801/art10.htm#tocl.patterns for e-business and the evolution of business to business on the Web, 2001年6
    [13] 侯云峰,刘睿,杨洪正,张立平编著.三层次client/server应用开发指南,电子工业出版社,2000年6月
    [14] [英]scott w. Ambler 著.The Object Primer 2nd Edition. Cambridge University Press, 2001
    [15] [美]CCF Connectors and DatabaseConnections Using WebSphereAdvanced Edition.IBM Corption, 2000年
    [16] [美]EJB Development with VisualAge for Java for WebSphere Application Server IBM Corption, 2001年5月
    [17] http://www7.software.ibm.com/vad.nsf/data/document2345.
    [18] [美]IBM公司著.翟玉庆,姚文隽,徐俊萍译.websphere环境下EIB编程机械工业出版社,2001年7月
    [19] 周之英.现代软件工程[中].北京:科学出版社,2000年
    [20] 周之英.现代软件工程[下].北京:科学出版社,2000年
    [21] [美]Ueli Wahli 等著.瞿裕忠,张剑峰,王从刚等译.WebSphere环境下Servlet与JSP高级编程 北京:机械工业出版社.2001年8月
    [22] [美 ] VladaMatena,Beth Sterns著.瞿裕忠,陆海涛,彭晓辉等译.J2EE平台上的EJB组件开发.北京:机械工业出版社.2001年8月
    [24] http://www.ChinaJavaWorld.com.EJB-Java服务器端构件模型,2001年
    [25] [美]Wayne Beaton著.移植到 IBM WebSphere Application Server,第Ⅰ部分:设计利于移植的软件.IBM Software Group,2001年7月
    [26] 王岚,王玉库.利用JDBC连接不同的多媒体数据库.天津职业技术师范学院学报,1999年第1期
    [27] Christina Li 著.Mapping Rational Rose Models to the VisualAge for Java EJB Development Environment.IBM Toronto Lab, December 2000
    [28] BatiniC,LenzeriniM,NavatheS.A Comparative Analysis of Methodologies for Database Schema Integration.ACMComputerSurv, 1993,18(4):323~364
    [29] UllaMerz,RogerKing.A query facility for Multiple Databases.ACM Transon Database Systems, 1994,19(2):339~359
    [30] HackathomD. Enterprise Database Connectivity. NewYork:John Wiely&Sons, 1994
    [31] LitwinW, AbdellatifA AnOverviewofMultidatabaseManipula-tionLanguageMDSL. ProcIEEE, 1987,75(5):621~631
    [32] BreitbartY, SilberschatzA,ThompsonGR.Transaction Management in a Failure-Prone Multi database
    
    Environment[J].VLDBJournal,1992,1(1)
    [33] Kim W,ChoiI,ScheevelM.On Resolving Schematic Heterogeneity in Multi database Systems [J] Journal of Distributed and Parallel Databases, 1993,1(3)
    [34] LuH,ShanM.Global Quay Optimization in Multidatabase Systems [A]. In:Proc of the NFS Workshop on Heterogeneous Databases and Semantic Interoperability[C].
    [35] Object Management Group. The Common Object Request Broker Architecture and Specificaton [Z].OMGDocumentNo.91. 12. 1. 43
    [36] 马松,盛浩林Intranet上数据库中间件原型的研究与构造[J].软件学报,1999,10(1) :86-91.
    [37] OMG.CORBA Services:common object services specification [EB/OL]. Http://www.omg.org 1998 10/1999/01 20. [3] 0. [3]

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

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

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