Font Size: a A A

J2EE - Based Web Application And Implementation Of Multi - Layer Architecture

Posted on:2008-09-13Degree:MasterType:Thesis
Country:ChinaCandidate:M ZhangFull Text:PDF
GTID:2208360212499808Subject:Computer system architecture
Abstract/Summary:PDF Full Text Request
Now a lot of application systems are building on the Webfoundation.B/S structure now becomes the mainstream development system for enterprise application.The maturity of J2EE platform, offer the wider space for Web application development.At present according to the Web application of J2EE terrace at logical is been divided into 4 F generally: Domain Model Layer, Presentation Layer,Business layer and Database layer.This kind of multi-layer system structure provided 1 kind according to the module toward the developer Of the mold piece of design and development Web application turn a method.Applied carry out of each layer of system technique is varied and grow techniques to all have it the merit and shortcoming each time with the most suitable use of scope, how choose each technique and how combine these techniques to carry out an applied system is a worthy of consider further of problem.This text mainly aims at to mean a layer, business layer with held out for long time the realization of layer to put forward according to the WebWork +Spring+Hibernate solution.WebWork is a pull-out framework of implementing MVC pattern and strives for reusing module and code, it relieves burden for constructing Web application by its flexible and powerful function. Differentiating strong invasion of EJB, Spring which is a lightweight container is designed with dependency injection and can make component loose coupling dynamically and compatible with other framework. Hibernate is an open source persistence framework, which entirely reduces the complexity of maintaining data and make system have higher performance and portable.This paper takes the project of Sichan province LeShan Giant Buddha EBS as example. To detailed design for each layer such as Web layer, business logic layer and data persistence layer based on requirements analysis completely. As for the characteristic of project, after compared advantages of all sorts of framework technologies, the author integrated with WebWork, Spring and Hibernate and put forward a general model of J2EE architecture, what is that WebWork which implemented MVC pattern play the role of Web presentation layer and hand over its business logic to Spring, manage objects'relation of between controller and data access object through Spring and make data persistence by Hibernate. In the process of carrying out, the architecture utilizes many compatible technologies such as Ajax, Acegi and Freemarker, and develop a series of reusable templates.After Unit test and Integral test, the system is basically satisfied all requirements.In conclusion, this thesis made did deep analysis of many popular frameworks and offer a J2EE architecture of integrating Webwork, Spring and Hibernate, which not only resolve traditional issues in Web design but also enhance the system's maintainability, expansibility, compatibility and reusability through adopting delamination and modularization.
Keywords/Search Tags:J2EE, Framework, WebWork, Spring, Hibernate
PDF Full Text Request
Related items