在基于Java EE(J2EE)软件开发方面,目前流行的软件架构方式是Spring+Hibernate+Struts,它的缺点是开发较慢,难于维护.通过引入JBoss Seam作为主体框架,用于开发基于三层B/S模式的城市供水管理系统,利用JBoss Seam所提供的注释和双向注入,组件的状态管理,以及所集成的大量框架和服务等各类功能,能够加快系统的开发、降低开发及维护难度.系统持久层使用JBoss Seam所集成的Hibernate,表示层使用Seam所推荐的JSF框架、支持JSF的Facelets模板框架以及内置支持Ajax的RichFaces框架,能够快速开发出以构件为中心、模板化的、体现Web2.0风格的页面.%The current popular architecture suite for Java EE (J2EE) development is Spring + Hibernate + Struts. However, this results in slow development and hard to maintain systems. JBoss Seam serves as the main framework for the development of an urban water supply management system. It conforms to the three-tier B/S model. Using annotation and bijection provided by JBoss Seam, state management of the components, as well as the integration of a number of frameworks and services, not only is the development process easier and faster, but the resulting system is also much easier to maintain. Its persistence layer utilizes Hibernate framework integrated in Seam. As recommended by Seam, the presentation lever is based on JSF framework, with the Facelets template framework backed by JSF and RichFaces framework with built-in Ajax support. This way, the system is developed quickly with component based, templated pages in web2.0 style.
展开▼