在研究多种J2EE Web框架和J2EE核心模式的基础上,提出了一种基于J2EE核心模式的组合Web框架——CWFBP(Composite Web Framework based on core J2EE Patterns)模型.框架采用分层体系架构,集成了开源的J2EE Web框架和持久层框架,并在表示层和业务层综合应用多种J2EE核心模式,实现了层次之间和业务层内部的松散耦合,提高了系统的可复用性和开放性.研究了N层计算模式、AJAX和正则表达式等在模型中的应用.采用CWFBP进行软件架构,设计实现了三峡——葛洲坝水利枢纽通航调度系统.系统运行实践表明了CWFBP的正确性和有效性.
A new composite Web framework based on core J2EE patterns (CWFBP)is presented, after analyzing core J2EE patterns and enterprise Web applications. Developed under multi-tired architecture and integrated with well-designed, open source J2EE Web application frameworks, CWFBP enjoys several advantages such as loose coupling among layers, portability, replaceability and reusability. In addition, the application of N-layer computing model, AJAX and regular expression in CWFBP is described. The navigation co-scheduling system for the Three Gorges-Gezhouba Dams is implemented under CWFBP. The practices show the validity, efficiency and application potential of CWFBP.