In recent years, J2EE (Java 2 Platform Enterprise Edition) increased quickly, which has become the actual standard and criterion of enterprise-ready application development. J2EE can be considered as an architecture which adopts Java to simplify the development, deployment and management of enterprise-ready resolution strategy. J2EE has been widely utilized for its good quality of portability and expansibility. It hasn't provided a satisfying application programming model, although has had a series of standards for enterprise-ready application services. So the development of enterprise-ready applications based on J2EE standard components usually goes with a low efficiency.Amounts of excellent Lightweight OpenSource frameworks on data persistence layer, business layer and presentation layer emerged with the development of the OpenSource movement. Many problems in the traditional J2EE development can be easily solved if we apply excellent Lightweight OpenSource frameworks to the establishment of Lightweight J2EE structure. Based on the research of Layered Architecture Pattern, the dissertation investigates the entire design and each layer's design of Lightweight J2EE architecture. The comparative analysis is undertaken after summarizing the main frameworks and strategies in each layer, which would contribute a lot to the selection of framework and design of architecture. And then, this dissertation focuses on researching two J2EE architectures based on Lightweight OpenSource frameworks, and applies the two J2EE architectures to the development of an authority management system. This authority management system is based on the core RBAC model, and applies the ICONIX process and the Test Driven Development during the process of its development. Moreover, an automatic code generation module based on Struts, Hibernate, and Spring is extracted through researching OpenSource framework appfuse, and the module is improved according to the development process of the authority management system. Then the improved module will accelerate the efficiency at a great extent when facing the development based on Struts, Hibernate, and Spring. |