Font Size: a A A

The Research And Application Of J2EE Lightweight Framework

Posted on:2009-06-30Degree:MasterType:Thesis
Country:ChinaCandidate:Y SunFull Text:PDF
GTID:2178360248454694Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
In recent years, with the development of Internet and enterprise informationization, there have been greater demands for application systems based on Web to meet more complicated requirements and shorter R&D time cycle. Regarding complex and changeable market environment, a good design pattern and a mature and stable system framework may play a key part in the Web application which has better flexibleness, expansibility, reusage, maintainability and management.There are some disadvantages by adopting the traditional EJB-based J2EE structure for development. This thesis analyses those disadvantages and puts forward the thought of integrating the frameworks. It replaces the traditional EJB framework by using some lightweight and flexible J2EE frameworks.At first, this thesis researches on MVC design pattern and three current mainstream frameworks which are called Struts, Spring and Hibernate. Struts is a framework based on MVC design pattern ,which separates the business layer and the view layer and lessons the burden of building multilayer web application. Spring is a multilayer J2EE lightweight framework, which is designed for solving the complexity of developing enterprise application programs. Hibernate is an object-relational mapping tool. It encapsulates the JDBC actions, reduces the complexity of developing database and makes the system have better performance.This thesis analyses the advantages and disadvantages of each framework and the functions of them on different layers by researching on the three kinds of frameworks--Struts, Spring and Hibernate, and then designs a multilayer Web framework which is flexible, loosely coupled, extensible and efficient. Struts is used on the presentation layer, Spring is used on the business layer, and Hibernate is used on the persistence layer. At the same time, in order to make the interfaces flexible and uniform, the authentication codes concentratively managed and reused, and the outputs of the logs flexible and normative, the framework uses Tiles, Validator and Log4j to make it perform better.Finally, through developing the questionnaire investigation system, the thesis discusses the implement process of the system by using the designed framework detailedly.The result shows that the framework can make the system be independent of the development platform and also can enhance the efficiency of the system development and improve the maintainability, expansibility and reusage of the system.
Keywords/Search Tags:J2EE, MVC design pattern, Struts, Spring, Hibernate
PDF Full Text Request
Related items