| As the application of E-Commerce are developing and deepening, it has become agreat challenge to the traditional E-Commerce patterns, and the innovation of E-Commercepatterns has been the urgent requirement for enterprises. Using the experience of traditionalenterprise offline management and the advantage of E-Commerce, a new E-Commercepattern, OAO, is proposed. The E-commerce system is the information system platform forenterprises begin electronic business affairs. Current hierarchical schema framework based onEJB architecture, the coupling is too high, the invasive is too strong and the lack ofscalability.In order to meet the growing demand of enterprise application system, improve theflexibility of enterprise information system interaction, according to the characteristics ofenterprise information application, and follow the application framework design principles,the author makes the concrete general analysis of the traditional solutions based on EJBcomponent model, and puts forward an application framework based on the Java EEarchitecture. In Java EE architecture layers use excellent open source frameworks:Struts takecharge of the presentation layer, Struts2integrated the characteristics of hierarchical structureof the MVC pattern, it provides a powerful label presentation technology, a flexible andnatural way of the controller distribution, and sets aside interfaces for other framework inorder to integrate facilitate; Spring takes charge of business logic, The Spring’s IOC containeris the basis of the application framework, it is a comprehensive integration framework,Dependency Injection can be seamlessly integrate various framework components, realizesthe loose coupling between components of the application framework; Hibernate takes chargeof data persistence layer,Hibernate framework is an O/R Mapping(Object/Relation Mapping)tool, and effectively solve the impedance mismatch between the relational database and theobject, Through entity-relational mapping tool to relational database mapping data into atarget to achieve the object-oriented manner in order to operate the database.Finally, according to the Java EE application framework development system,the authordesigns the electronic commerce system of the OAO e-commerce pattern. Through analysis the electronic commerce system work level and characteristics, we can know that the systemadopts the reusability, extensibility and portability of framework components,not onlyensure the quality of the core code development, ensures the quality of the key code,butalso improves the development efficiency and shorten the time to market for the application。The system has strong points such as high extensibilityã€good scalabilityã€easy maintenanceand loose coupling etc. |