好文档就是一把金锄头!
欢迎来到金锄头文库![会员中心]
电子文档交易市场
安卓APP | ios版本
电子文档交易市场
安卓APP | ios版本

《jee层次架构》ppt课件.ppt

18页
  • 卖家[上传人]:tian****1990
  • 文档编号:74444432
  • 上传时间:2019-01-28
  • 文档格式:PPT
  • 文档大小:427.81KB
  • / 18 举报 版权申诉 马上下载
  • 文本预览
  • 下载提示
  • 常见问题
    • 2019/1/28,School of Software, Sichuan University,1,J2EE层次设计架构 典型的三层结构 表示层 (presentation) 主要处理用户和软件的交互 * 视窗图形界面(VB,PB)(Client) * 基于html的界面 (Server) 领域层 (domain)(业务逻辑层)(Server or Client) 对输入和存储数据的计算 * Transation Script (属于结构性思维) * Domain Model(属于OO思维) 基础架构层 (infrastructure) 存储持久数据,基 于 J2EE 的 开 发 技 术 阮 树 骅,2019/1/28,School of Software, Sichuan University,2,目前常见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 * JavaBeans激活架构(JAF)1.0 * J2EE连接器体系结构(JCA)1.0 * Java认证和授权服务(JAAS)1.0,基 于 J2EE 的 开 发 技 术 阮 树 骅,2019/1/28,School of Software, Sichuan University,3,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 的 开 发 技 术 阮 树 骅,2019/1/28,School of Software, Sichuan University,4,MVC(Model-View-Controller)软件设计模式 1、模型(Model) 模型是应用程序的主体部分。

      模型表示业务数据,或者业务逻辑 2、视图(View) 视图是应用中与用户界面相关的部分 是用户看到并与之交互的界面 3、控制器(Controller) 控制器处理用户的输入 控制用户界面数据显示和更新Model对象状态 实现了功能模块和显示模块的分离; 提高了应用系统的可维护性、可扩展性、可移植性 和组件的可复用性基 于 J2EE 的 开 发 技 术 阮 树 骅,2019/1/28,School of Software, Sichuan University,5,2019/1/28,School of Software, Sichuan University,6,2019/1/28,School of Software, Sichuan University,7,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 user's input The separation of tasks allows for easily maintainable systems,基 于 J2EE 的 开 发 技 术 阮 树 骅,2019/1/28,School of Software, Sichuan University,8,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) webuser:select on all tables/update on book,基 于 J2EE 的 开 发 技 术 阮 树 骅,2019/1/28,School of Software, Sichuan University,9,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 的 开 发 技 术 阮 树 骅,2019/1/28,School of Software, Sichuan University,10,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 的 开 发 技 术 阮 树 骅,2019/1/28,School of Software, Sichuan University,11,Library Objects Servlets · Controller.java · SearchController.java · MemberLoginController.java · MemberViewborrowedController.java · MemberViewonholdController.java · LibrarianLoginController.java · LibrarianCheckoutController.java · LibrarianCheckinController.java,基 于 J2EE 的 开 发 技 术 阮 树 骅,2019/1/28,School of Software, Sichuan University,12,基 于 J2EE 的 开 发 技 术 阮 树 骅,2019/1/28,School of Software, Sichuan University,13,2019/1/28,School of Software, Sichuan University,14,2019/1/28,School of Software, Sichuan University,15,2019/1/28,School of Software, Sichuan University,16,2019/1/28,School of Software, Sichuan University,17,2019/1/28,School of Software, Sichuan University,18,。

      点击阅读更多内容
      关于金锄头网 - 版权申诉 - 免责声明 - 诚邀英才 - 联系我们
      手机版 | 川公网安备 51140202000112号 | 经营许可证(蜀ICP备13022795号)
      ©2008-2016 by Sichuan Goldhoe Inc. All Rights Reserved.