Improvement and practice of a lightweight J2EE framework
- Author
- WuYongQiang
- Advisor
- ChenWenYu
- School
- University of Electronic Science and Technology
- Major
- Software Engineering
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 75
- Citations
- 0
Abstract
In the voice of the global informatization and digital construction, the Internet hasentered and affected everyone’s life. With more and more demands for building variousWeb applications, various solutions have emerged for building a stable and reliable Websystem fast and efficiently. J2EE multi-tiered architecture is one of the most popularWeb application development frameworks. And it has become the standard platform forresolving e-commerce and enterprise application development. However, due to basedon the drawbacks of complexity and invasive design of traditional J2EE frame, a varietyof open source communities have emerged a large number of outstanding open sourceframeworks in recent years. Because of their low coupling, easily extensibility, highreliability, low development cost, short development cycle, they have been widely usedin development of small and medium-sized enterprise-level information systems.Firstly, according to the J2EE layered design ideas, this thesis research severalmainstream lightweight J2EE frameworks of each layers: Struts2as the framework ofthe control layer, can be convenient to develop program based on the MVC model; theSpring as the business logic layer framework, the IOC container can reduce thedependence between the components, the AOP programming can separate systemsbusiness and public concerns; Hibernate as the data access layer framework that canfacilitate the achievement of ORM, without attention to the specific database system; JSframework of the view layer, its rich UI resources and the simple style of the code, canimprove the development efficiency.Then, based on the integration and application of frameworks, to accelerate thedevelopment and improve system performance,this thesis puts forward serveral optimaldesign for each layers: the view layer apply composite view to improve the reuse ofsub-pages,view helper to package page logic, data validation to ensure data legitimacy,the Ajax access style to improve the user’s experience; the control layer applyinterceptor,model-driven, related request package to improve the program’s modular;business logic layer apply facade pattern, the value object transfer mode to encapsulatespecific business, reduce network traffic, with declarative transaction management to achieve the separation of business process and transaction management; database accesslayer apply caching techniques, lazy loading, connection pooling technology to improvethe response speed of service.For enterprise information systems, the most common business needs is eachdomain model’s creating, reading, updating and deleting, this thesis proposed generictemplate operation strategy. Through extracted the public module in each layer andingenious application of generic and reflection technology, it can not only avoid to writethe similarity function of domain model module in each layer repeatedly, but alseguarantee the application’s robustness and maintainability through the unified publicmodel execution.Through the integrated application of these technologies in the practice of thecampus energy-saving system, indicate that the architecture can not only solve therequirements of the traditional Web application development, but also through publicservice module extraction, it can greatly reduce the code redundancy, reduce theworkload of developers, and also to some extent, enhance the flexibility and scalabilityof the system.
Table of contents
Summary 4-5
ABSTRACT 5-11
first chapter 11-14
1.1 Background and Significance 11 - 12
1.2 research 12-13
1.3 This article organizational structure 13-14
chapter lightweight framework research 14-37
2.1 J2EE Overview 14-17
2.1.1 traditional J2EE architecture 15-16
2.1.2 J2EE lightweight framework 16-17
2.2 control layer frame -STRUTS 2 17-22
2.2.1 MVC design pattern 17-19
2.2.2 Struts 2 processing 19-21
Features 2.2.3 Struts2 of 21-22
2.3 Yewuluojiceng frame -SPRING 22-29
2.3.1 Spring architecture 23-24
2.3.2 inversion of Control and dependency Injection 24-25
2.3.3 Spring AOP 25-27
2.3.4 Spring of Features 27-29
2.4 persistence framework -HIBERNATE 29-33
2.4.1 Hibernate runtime architecture 30-31
2.4. 2 Hibernate entity object and its life cycle 31-32
2.4.3 Hibernate features 32-33
2.5 view layer framework 33-36 <br / > 2.5.1 JavaScript framework advantage 34-35
2.5.2 JS presentation layer framework 35-36
2.6 Summary 36-37
Chapter III of traditional lightweight J2EE architecture way 37-57
3.1 SSH architecture classic way 37-39
3.1.1 system Architecture target 37 <br / > 3.1.2 system Architecture 37-39
3.2 architecture optimization 39-56
3.2.1 view layer optimization 40-45
3.2.2 control layer optimization 45-48
3.2.3 logic layer optimization 48-52
3.2.4 data Access Layer optimization 52-56
3.3 Summary 56-57
Chapter IV generics-based design approach 57-71
4.1 design patterns 57-59
4.1.1 The four principles of design patterns difference 57-58
4.1.2 model and framework 58
4.1.3 design Patterns four basic elements 58-59
4.2 generic based design 59-70
4.2.1 related technical presentations 59-60
4.2.2 generic DAO 60-63
4.2.3 generic Service 63-68
4.2.4 mode improved architecture 68-70
4.3 Summary 70 after -71
Chapter improvements based application 71-108
5.1 project Overview 71-73
5.1.1 project Background 71 - 72
5.1.2 functional and overall architecture 72
5.1.3 system goals 72-73
5.1.4 operation system development platform 73
5.2 system functional design 73-76
5.2.1 reception function 73-75
5.2.2 back-office functions 75-76 <br / > 5.3 database design 76-79
5.3.1 database ER diagrams 76-77
nbsp 5.3.2 database table structure ; 77-79
5.4 system integration framework 79-85
5.4.1 Struts2 and Spring integration 79-80
5.4.2 Hibernate and Spring integration 80-82 <br / > after 5.4.3 integration architecture optimization 82-85
5.5 backend systems design and implementation 85-95
design and Implementation 5.5.1 view layer 85-87
5.5.2 control layer Design and Implementation 87-90
5.5.3 design and implementation of business logic layer 90-92
5.5.4 data access layer design and implementation requested execution flow 92-94
5.5.5 backstage improved contrast 94-95
5.6 reception system Design and Implementation 95 - 105
5.6.1 view layer design and implementation 95-98
5.6.2 control layer Design and Implementation 98-99
5.6.3 design Yewuluojiceng and implementation 99-102
5.6.4 data Access Layer design and Implementation requested execution flow 102-104
5.6.5 improved reception before and after contrast 104 - 105
5.7 system shows 105-107
5.7.1 background function display 105-106
5.7.2 reception function display 106-107
5.8 summary 107-108
Chapter VI summary and Outlook 108-110
6.1 summarizes 108
6.2 nbsp next job prospects ; 108-110
Thanks 110-111
References 111-114
Related dissertations
- Design and application of J2EE persistence layer framework DR-ORM
- Application and Implementation for the Public Security Office Automation System
- Design and Implementation of a Supply Chain System for Manufactural Enterprise
- Design and Implementation of Dynamic Monitoring System for Budget Enforcement Based on J2EE
- Integrated ERP Credit Control System
- The Design and Implement of Video Sharing Website Based on Face Tracking
- The Design and Implementation of the Campus Network Management System of Transport Management Institute Ministry
- A Design and Development of Operation and Maintenance System for Zhejiang Social Security Center
- Design and Implementation of Huafeng Company Integrated Office System
- Design and Implementation of a Enterprise Search Platform
- Design and Implementation of a Recommender System Framework Based on Collaborative Filtering Algorithm
- Research of Keyword Query Processing on XML Data
- The Research and Implementation of Information Management System Intergrated the Composite SSH2Frame
- Research and Implementatione of Secondary Development of the Corporate Units at the County Level Directory Database System
- Research and Implementation Based on the the J2ME Technology of Mobile Securities System
- Design and implementation of the Qilu Petrochemical Industries Co bidding management system
- Design and Achieve of IT Project Management System
- The Design and Implementation of Telecom Card Management Based on J2EE
- Based on B/S Structure of the Logistics Enterprise Management Information the Design of the System
- Development of Customer Value Assessment System Based on Decision Tree Algorithm