Along with the development and the popularization of computer science and technology, especially the widespread application of computers in the national economy, software, as computers'soul, obtains its widespread application to the social life, in the modern enterprises in particular. The java technology which has outstanding cross platform characteristics enjoys its superiority in enterprises at present; however, it is too complicated and costly to deploy enterprise level application of the standard J2EE platform. Therefore some medium and small-scale enterprises are unwilling or unable to carry out this kind of enterprise level application considering its technology and their fund. Open Source Technology is the most promising field in current computer industry domain and is a new trend for the development of software profession; what's more, it possesses great significance in facilitating the development of chinese computer industry domain which is still in its childhood.This article proposes a lightweight J2EE framework on the basis of open source framework Struts and Hibernate of persistence mechanism, and describes how developers apply Open Source Technology so as to provide medium and small-scale enterprises an enterprise level application scheme which is economical, fast to develop and deploy as well as stable and expandable.This article firstly does a general elaboration on J2EE technology and Open Source Technology, then choose Open Source Technology which suits the enterprise application according to the development of current open source technology. It also explains how to make full use of these different kinds of Open Source Technology so as to carry out enterprise level development and deployment. Then, it explores Struts framework on the basis of MVC mode and data persistence frame Hibernate, paying more attention to discuss how Struts realizes MVC mode and how Struts'modules works together. In addition, the java object persistence technology principle and the hibernate object relational mapping frame realization mechanism and the work principle are studied. On the basis of struts and the hibernate framework, one lightweight J2EE framework of open source technology is proposed, which has been applied to opening up sanitation management system project in Chongqing Banan area, and have proved to be a fast to develop, stable and expandable enterprise level application。Finally, this author analyses the benefit and the risk when any enterprise makes use of ths Open Source Technology, and sums up the research works and points out the... |