Font Size: a A A

A Lightweight J2ee Architecture To Improve With Practice

Posted on:2013-05-29Degree:MasterType:Thesis
Country:ChinaCandidate:Y Q WuFull Text:PDF
GTID:2248330374985954Subject:Software engineering
Abstract/Summary:PDF Full Text Request
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.
Keywords/Search Tags:design pattern, J2EE, lightweight framework, generic
PDF Full Text Request
Related items