Font Size: a A A

The Integration Of Struts2, Spring3, Hibernate3 And Ajax Based On JavaEE Multi-layer Architecture

Posted on:2010-03-16Degree:MasterType:Thesis
Country:ChinaCandidate:X B WangFull Text:PDF
GTID:2178360275453777Subject:Management Science and Engineering
Abstract/Summary:PDF Full Text Request
With the development of software technology,reusable,scalable and easy to well-tested software components,are more and more popular for developers.In Which the most popular are Struts,Spring and Hibernate frameworks.However,with the coming of WEB 2.0 era,Ajax technologies bring our enterprise's developers a higher customer satisfaction.It is inevitable that Ajax framework is attention,therefore the design of SSH+Ajax framework based on MVC model is a very practical significance.MVC pattern,which separated the data access layer and data presentation layer, provides a better decoupling and a distinct advantage in the realization of multi-layered Web applications.Struts2 is an excellent realization based on the controller layer and the presentation layer of MVC pattern.And it not only provides a flexible and natural way of the controller distribution,and also provides a powerful label presentation technology,and sets aside interfaces for other frameworks in order to integrate facilitate.Spring is another excellent framework mainly based on the thinking of IoC and AOP.It is easy to achieve the assembly of Java Bean and transaction management, and at the same time it provides a unified interface for different data access technology.Hibernate framework is an ORM(Object/Relational Mapping) tool.It not only can manage the Java objects mapped to database tables,also provides methods of data query and access to data,which can significantly reduce the time of using SQL and JDBC technology to access to data manually.Ajax framework provides us a better and more flexible developing in the enterprise web applications,and it also can increase the development of satisfaction and work out problems in the Struts framework or Spring framework in order to complete software development.This paper,based on in-depth study of the various frameworks' system theory and design patterns,aiming at that presentation layer and Business Logic layer,Business Logic layer and Data layers can not be completely separated,will design a framework based on MVC,which mainly in Struts2,Spring3,Hibernate3 framework,Ajax framework as a supplement,and introduced Spring's IoC technology and Annotation technology in java 5's new features.It reduces the dependency between modules through the use of IoC thinking,and greatly reduces amounts of application codes, improve the efficiency of the application through the use of Annotation technology in POJO.It will bring the thinking of AOP in struts2 to the development of enterprise web application in order to the separation of business logic code and the basic operational code(cross-business code),improve the system code reusability,maintainability and readability,Finally we will use this integrated framework to complete an actual ERP project on Dalian XinLun enterprise.The result shows the system does not depend on platform and has the characteristics of high maintainability,expansibility and reusability.
Keywords/Search Tags:Struts2, Spring, Hibernate, Ajax, Annotation, IoC, AOP
PDF Full Text Request
Related items