| The application framework is not an available application system, but is a "half-finished product". It contains a set of cooperating classes and interfaces which can be used by programmer to carry on the further- development, in order to realize the specific class of software. And the "lightweight" doesn't refer to the application framework itself, but refers to the foundation structure of it as well as the support ability and assembly ability for other application tools.At present, more and more perfect application framework for each layer of J2EE are coming out. For example, in the web tier, we can choose Struts, Web Work or JSF, in the data access tier, we can choose Hibernate or iBATIS, and also we can only choose the Spring framewok which can work in the web tier, data access tier and business tier. However, it has been verified that the whole J2EE service is not necessary for the most requirement of application system. So, it has great practical importance to choose the open-source framework for the requirement of application, loosely-coupled with them, and do some appropriate expansion in order to realize a common J2EE framework without EJB.The purpose of this paper is to design and implement a ligthtweight_J2EE common framework called SSCF according to the overall design idea and design object, based on the open-source framework Struts and Spring. Finally, SSCF is delivered in the form of a compressed package, and it can be widely used in the development of web application based on J2EE. The only principle should be adhered to is "Don't Reinvent the Wheel": we only choose the most appropriate technology and do some expansion while SSCF is designing. And this paper mainly discusses SSCF from the following points:1. The research background of the thesis. First, the comparision and analysis of J2EE architecture of classical with ligthtweight is made in. After that, the paper intraduces the association and difference between framework and architecture, between framework designing and application system designing. Finally, the research background of the theme and the significance of SSCF are discussed as well. 2. The design idea and technology of SSCE After introduced the design idea of it, the paper analyses each kind of technology which is used in design of SSCF.3. The realization of SSCF. At first, the design objects and architecture of SSCF are introduced.Then, the UML class diagrams and source code of each part of SSCF such as domain object tier, data access tier, globle exception solutions and so on are expatiated in detail.4. The application of SSCF. Finally, how to use SSCF in the development of enterprise application is briefly described from the view of a business programmer.It shows that SSCF has preferable value in practical application. |