J2EE层次架构

上传人:无*** 文档编号:244106293 上传时间:2024-10-02 格式:PPT 页数:18 大小:232.50KB
返回 下载 相关 举报
J2EE层次架构_第1页
第1页 / 共18页
J2EE层次架构_第2页
第2页 / 共18页
J2EE层次架构_第3页
第3页 / 共18页
点击查看更多>>
资源描述
单击此处编辑母版标题样式,单击此处编辑母版文本样式,第二级,第三级,第四级,第五级,*,School of Software, Sichuan University,*,J2EE层次设计架构,典型的三层结构,表示层 (presentation),主要处理用户和软件的交互,* 视窗图形界面(VB,PB),(,Client,),* 基于html的界面,(,Server,),领域层 (domain),(业务逻辑层)(,Server or Client,),对输入和存储数据的计算,* Transation Script,(,属于结构性思维,),* Domain Model,(属于,OO,思维),基础架构层 (infrastructure),存储持久数据,基,于,J2EE,的,开,发,技,术,阮,树,骅,10/2/2024,1,School of Software, Sichuan University,目前常见,J2EE,的,API,*,JavaServer Pages(JSP)技术1.2,*,Java Servlet技术2.3,*,JDBC API 2.0,*,Java XML处理API(JAXP)1.1,*,Enterprise JavaBeans技术2.0,*,Java消息服务(JMS)1.0,*,Java命名目录接口(JNDI)1.2,*,Java事务API(JTA) 1.0,*,JavaMail API 1.2,* J,avaBeans激活架构(JAF)1.0,*,J2EE连接器体系结构(JCA)1.0,*,Java认证和授权服务(JAAS)1.0,基,于,J2EE,的,开,发,技,术,阮,树,骅,10/2/2024,2,School of Software, Sichuan University,Presentation,Tier,HTML,Client,Java Applet/Java,Applications,Web Server,HTML/XML,Servlets,Java Server Pages (,JSPs,),HTTP,Business,Tier,Data,Tier,Application Server,Existing System,Database,connector,EJB Session Bean,EJB Entity Bean,RMI/IIOP,CORBA/IIOP,RMI/IIOP,Simplified,J2EE,Architecture,JDBC/SQLJ,JDBC/SQLJ,CORBA,Client,基,于,J2EE,的,开,发,技,术,阮,树,骅,10/2/2024,3,School of Software, Sichuan University,MVC,(,Model-View-Controller,)软件设计模式,1,、模型(,Model,) 模型是应用程序的主体部分。,模型表示业务数据,或者业务逻辑。,2,、视图(,View,) 视图是应用中与用户界面相关的部分。,是用户看到并与之交互的界面。,3,、控制器(,Controller),控制器处理用户的输入。,控制用户界面数据显示和更新,Model,对象状态。,实现了功能模块和显示模块的分离;,提高了应用系统的可维护性、可扩展性、可移植性,和组件的可复用性。,基,于,J2EE,的,开,发,技,术,阮,树,骅,10/2/2024,4,School of Software, Sichuan University,10/2/2024,5,School of Software, Sichuan University,10/2/2024,6,School of Software, Sichuan University,iCarnegie Library Project,Model View Controller (MVC) architecture,Model,:,JavaBeans _ *.java in library package,to represent the data and logic of the subset of,the external world used in the program,View,:,Java Server Pages _ *.jsp,to manages the output of a user interface,Controller,:,Java Servlets _ *controller.java,to processes the users input,The separation of tasks allows for easily,maintainable systems,基,于,J2EE,的,开,发,技,术,阮,树,骅,10/2/2024,7,School of Software, Sichuan University,member (,ssn, driverlicstate, driverlicnum, fname,lname, street, city, state, pcode, phone,email, passwd),librarian (,ssn, fname, lname, street, city, state,pcode, phone, email, passwd),booktitle (,callnumber, name, author, edition, isbn,year, publisher),hold (,ssn,callnumber, holddatetime,),book (,bookid,callnumber,borrowerssn, duedate,librarianssn,),we,buser,:,select on all tables/update on book,基,于,J2EE,的,开,发,技,术,阮,树,骅,10/2/2024,8,School of Software, Sichuan University,Library Objects,JavaBeans,Member, Librarian, Hold, Book and BookTitle,a copy of the information in the database,BookSet, BookTitleSet and HoldSet,a set of Book, BookTitle and Hold objects,LibraryMember, LibraryLibrarian, LibraryBook,and LibraryBookTitle,instantiate the lightweight objects,基,于,J2EE,的,开,发,技,术,阮,树,骅,10/2/2024,9,School of Software, Sichuan University,Library Objects,JavaBeans,The DBWrapper class,maintains the connectivity to the database,The CommonTags class,a common header and footer for each page,The Library class,log members and librarians in,check books in and out,The LibraryUser class,user interface,基,于,J2EE,的,开,发,技,术,阮,树,骅,10/2/2024,10,School of Software, Sichuan University,Library Objects,Servlets,Controller.java,SearchController.java,MemberLoginController.java,MemberViewborrowedController.java,MemberViewonholdController.java,LibrarianLoginController.java,LibrarianCheckoutController.java,LibrarianCheckinController.java,基,于,J2EE,的,开,发,技,术,阮,树,骅,10/2/2024,11,School of Software, Sichuan University,基,于,J2EE,的,开,发,技,术,阮,树,骅,10/2/2024,12,School of Software, Sichuan University,10/2/2024,13,School of Software, Sichuan University,10/2/2024,14,School of Software, Sichuan University,10/2/2024,15,School of Software, Sichuan University,10/2/2024,16,School of Software, Sichuan University,10/2/2024,17,School of Software, Sichuan University,10/2/2024,18,School of Software, Sichuan University,
展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 管理文书 > 施工组织


copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!