Font Size: a A A

Construction And Application Of Lightweight J2EE Framework

Posted on:2009-09-24Degree:MasterType:Thesis
Country:ChinaCandidate:Q F ShenFull Text:PDF
GTID:2178360245965591Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
The J2EE technologies hold an extremely remarkable status in the e-business and enterprise application system developments. But many projects do not need advanced J2EE characteristics and distributed applications that are the advantages of the traditional J2EE framework, the complex development, configuration, deployment of advanced J2EE characteristics and distributed application will greatly slow down the development and increase the enterprise's cost. On the basis of summarizing literature about J2EE technologies, the thesis analyzes these limitations when traditional J2EE framework which is based on EJB develops the e-business and enterprise system. The thesis proposes a lightweight J2EE framework scheme which is based on open source frameworks and lightweight container. On last chapters, the thesis develops the online book store system using the scheme. The result shows the system bears independency of platform, and has these characteristics of high maintainability, expansibility and reusability on components. And then the practice proves the lightweight J2EE development framework is available. Work in the thesis is shown as follows: (1)The thesis researches Struts, Spring and Hibernate frameworks, and analyzes each framework's function in web applications which are based on hierarchical structure. The thesis constructs a common Java architecture which is suitable for enterprise web application by integrating with three frameworks. The framework hands Struts business logic to Spring, utilizes Spring's beans configuration to manage the related classes; manages objects' relation of between controller and data access object through Spring and implements data persistence by Hibernate. The framework takes Spring to manage transaction.(2) On the basis of analysis aiming at lightweight container's core mechanism, the thesis focuses on the strategy and characteristic of Inversion of Control pattern. Using spring framework, the thesis provides effective tool to manage business layer components. The thesis implements the low coupling between the components of business layer and the container, also between the components and components, and meanwhile enhances the flexibility and the testability of the application development.(3) The thesis develops online book store by using the framework proposed in the thesis. The presentation layer is implemented by Struts framework, and uses these components such as JSTL,Validator Tiles. The business layer bases on Spring framework, and uses AOP and IoC components. The system uses Hibernate framework to implement persistence layer. All resources from layers are integrated by Spring. DAO layer and data persistence layer are interactive through Spring. Spring provides service to presentation layer also. The thesis upgrades system's performance by importing cache component EHCache and Pool component Proxool. It shows the system performs better when using EHCache and Proxool.
Keywords/Search Tags:lightweight container, Spring, Hibernate, Struts, frameworks integration
PDF Full Text Request
Related items