摘要
通过研究企业应用架构模式,提出基于MonoRail、Castle和NHibernate等开源框架的4层架构模型,总结出一种适合企业Web应用的通用方法:采用MonoRail来实现MVC模式;将Web应用中的业务逻辑交给Castle管理,相关组件和类通过Castle的配置文件联系起来;由NHibernate负责数据的持久化。实际的项目开发结果表明:整个系统与采用传统的方法所开发的系统相比较,有着更好的可维护性、可扩展性、可移植性和组件的可重用性。
This paper focus on patterns of enterprise application architecture research,and then provides a 4-Tier architecture model of enterprise application which is based on MonoRail,Castle and NHibernate framework.This paper mainly describes about each framework plaing what role and providing a general method that is fit for developing enterprise application.In this method,MonoRail is used to build the Web presentation layer;Castle is used to manager the business logic component and NHibernate is used to persist data.At last,a project is implemented by the designed architecture.The result shows the system doesn't depend on platform,and has the characteristics of high maintainability,expansibility and reusability.
出处
《计算机与现代化》
2010年第8期62-66,共5页
Computer and Modernization
基金
国家教育部重点基金资助项目(000092)
关键词
软件架构
信息系统
企业应用
software architecture
information system
enterprise application