Research and Application of the J2EE frameworks and design patterns

Author
LiLi
Advisor
QinZhiGuang
School
University of Electronic Science and Technology
Major
Software Engineering
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2009
Downloads
281
Citations
9

Request the full text

Abstract

J2EE multi-layer framework which is the most popular web development framework has already been the standard roof at solving the problems of e-commerce and enterprise application. As the traditional J2EE framework is too complicated and enxpensive to develop, a set of excellent lightweight frameworks are rush out in the opensource community such as Struts, Spring, Hibernate, Webwork, JSF,iBatis and so on. Beacause of their loose coupling, high reliability, easy expansibility, cheap developing cost and short developing cycle, they are used widely for the web information manage systems not huge.Apache detrudes Struts2 based on Struts and Webwork and it is a stronger light weight framework, and it is believed that Struts2 will replace the hot Struts MVC framework in the nearby future. Besides this, Hibernate updates to a new edition which is advanced and has much more funtions.In this thesis, Struts2, Spring, Hibernate are conformed to a mixure. Based on it and the design patterns, a construction is designed for reuse on more levels.Works on:(1) The existed frameworks are compared. The most suitable framework’s working mechanism are briefly introduced. and then the virtues of these framework are analyzed. Besides framework, GoF design pattern and the subsequent J2EE core pattern based on it is introduced.(2) These framework are conformed to a mixure. We will use Struts2 on the presentation layer and Spring on the operation layer. Moreover, Hibernate will be used on the persistence layer..(3) We use filter, front controller and application controller to control the main flow of Web layer. JavaScript and Struts2 validation mechanism is used to check out the inputs. Template class and the interceptor is used to ensure the logic security. Access purview is implement by button tag and MD5 is used to encrypt the password.(4) On the business layer, the creation of bean is implement by factory pattern and bean’s definition is by services location. IoC mechanism is used for bean’s immit. Besides these, Proxy, session fa?ade and strategy patterns are used to organize the code. At last, Log4j is put into Log management part.(5) On the persistence layer, hibernate’s cache mechanism, batch disposal and lazy to load mechanism are used to make the system more effective. Dao is used and a so called anti-framework is put forward. At last, a method to solve the problem of the synchronization of data source is suggested.(6) A radiative equipment management system based on RFID is developed. to explain the application of the framework the paper puts forward.Experiments proved that using the framework and design patterns can largely enhance the system’s performance including its revisability, maintainability and readability, in addition, developing risk and cycle can be greatly shortened.

Table of contents

Abstract 4-6 ABSTRACT 6-11 first chapter 11-14 1.1 Background 11-12 120 research 12-13 1.3 papers organizational structure 13-14 the second chapter of the J2EE lightweight frameworks and design patterns 14-34 2.1 J2EE enterprise-class development platform standard 14-17 2.1.1 J2EE Overview 14-15 2.1.2 J2EE advantages of 15 2.1.3 traditional EJB technology problems in 15-16 2.1.4 J2EE lightweight framework 16-17 2.2 web-tier framework 17-20 Comparison of 2.2.1 Web layer framework 17-18 2.2.2 Strut52 Framework Overview 18-19 a 2.2.3 Strut52 advantages 19-20 2.3 Business Logic Layer framework 20-25 2.3.1 Spring Introduction 21-22 2.3.2 Inversion of Control (IoC) 22-23 2.3.3 aspect-oriented programming (AOP) 23-24 2.3.4 of the Spring's advantage 24-25 2.4 persistence layer framework 25-29 2.4.1 persistence layer ORM framework for comparison 25-26 2.4.2 Hibernate Overview 26-28 2.4.3 of the Hibernate's advantages 28-29 2.5 design patterns 29-34 2.5.1 Design Patterns origin 29 2.5.2 design pattern classification 29-32 2.5.3 Design Patterns principles 32 2.5.4 J2EE design patterns 32-34 \ 3.1 design goals 34-35 3.2 J2EE lightweight framework for the integration of 35-39 3.2.1 Strut52 Spring's integration 35-36 3.2.2 Hibernate and Spring integration 36-38 3.2.3 framework to integrate the advantages of 38-39 3.3 Web layer detailed design 39-46 3.3.1 Web layer needs 39 3.3.2 Web layer work process model 39-41 3.3.3 web-tier security mode 41-44 3.3.4 Web Layer performance modes 44-45 3.3.5 other modes 45-46 3.4 persistence layer design 46-50 3.4.1 lasting layer of basic needs 46 3.4.2 persistence layer workflow model 46 3.4.3 Dao mode 46-47 3.4.4 lasting performance mode 47-49 3.4.5 data source synchronization 49-50 3.5 business detailed design 50-56 3.5.1 business layer needs 50 3.5.2 business layer workflow model 50-53 3.5.3 business layer module design patterns 53-54 3.5.4 Log Management 54-56 3.6 system code structure planning 56-58 RFID management of radioactive sources b / s part 58-93 4.1 Overview 58-61 4.1.1 Project Background 58-59 4.1.2 project functions and objectives 59-60 4.1.3 b / s as part of the development runtime platform 60 4.1.4 b / s part of the project path 60-61 4.2 Provincial Environmental Protection Bureau regulatory module outline design 61-77 4.2.1 Design Overview 61-62 4.2.2 Functional Design 62 4.2.3 Module Design 62-64 4.2.4 database design 64-72 4.2.5 Class design 72-77 4.3 concrete realization 77-88 4.3.1 data persistence layer design and 79-83 4.3.2 presentation layer design and 83-87 4.3.3 business design and 87-88 4.4 operating results 88-93 Chapter Summary and Outlook 93-95 thank 95-96 References 96-98 research results achieved during the attack master 98-99

Related dissertations

  1. Research and Application Based on SSH2and JBPM for J2EE Develop Platform
    DingZhiYi ·Northwest Normal University ·2013 ·Master's thesis
  2. The Research of Java EE Framework and Designed on the E-Commerce Pattern of OAO
    MaHuiBin ·Chang'an University ·2013 ·Master's thesis
  3. The Design and Implementation of Vehicle Tracking Management System
  4. Design and Implementation of Small Business Human Resource Management Information System
  5. Design and Implementation of the Manufacturing Enterprise OA System Based on SSH2Framework
  6. Design and Implementation of High Performance Computing Service Management Platform Based on JavaEE
    YuJun ·South China University of Technology ·2013 ·Master's thesis
  7. The Design and Implementation of College Students' Party Information System Based on the SSH
  8. The Design and Implementation of Tobacco Platform of Quality Management Based on JavaEE
  9. The Application of an Improved Access Control Model in Authority Management Module
    HuangYi ·Hunan University ·2010 ·Master's thesis
  10. The Design and Implementation of Online Bookstore
    GaoHao ·Beijing University of Technology ·2012 ·Master's thesis
  11. Design and implementation of student network report system based on Lightweight Framework
    LiuJia ·University of Jinan ·2012 ·Master's thesis
  12. The Design and Implementation of Printing and Dyeing Production Information System Based on S2SH
  13. Application and Study of Ssh Frame Techlology in the Supermarket Management System
    HeYanFang ·Hunan University ·2011 ·Master's thesis
  14. Design and implementation of SSH2 framework based on internal OA system of Jiangxi Construction Bank
  15. The Development of Agent Order Management System Based on J2EE
    YinLiangQun ·Northeast University of Petroleum ·2013 ·Master's thesis
  16. The Design and Implementation of the Online Business Competition System of PBCBased on SSH2
    GuoKeYing ·Shandong University ·2013 ·Master's thesis
  17. Information Release Platform of Auto Parts Based on J2EE
  18. The Design and Accomplishment of College Financial Management System for Tianjin University
    TianXiaoQing ·Tianjin University ·2012 ·Master's thesis
  19. Design of Secure E_acution System Based on JavaEE Lightweight Framework
    JieZhi ·Wuhan Polytechnic University ·2012 ·Master's thesis
  20. Design and Implementation of Energy Measurement System for the Steel Manufacture