对组件系统性能建模时,需要考虑中间件平台的影响.基于体系结构模式,分析了容器风格中间件对组件系统结构和性能的影响,并提出了一种在组件系统UML描述中集成中间件组件及交互关系的方法.从该集成UML模型导出的性能模型,能够有效地反映中间件的影响.这样,在对组件系统性能建模时,无须了解中间件内部细节.这种基于体系结构模式的方法可以方便扩展以处理不同风格的中间件,且易于实现自动化.以EJB容器中间件为例说明并验证了所提出方法的有效性.
This paper analyzes the effect of Container style middleware on the structure and performance of Component-based system based on architectural patterns, and proposes an approach integrating Container style middleware components and their interaction relation into the application UML (unified modeling language) models The performance model derived from the integrated UML models can reflect the impact of middleware. So, analysts do not have to know the internal details of middleware at performance modeling. The architectural pattern-based method can be extended to deal with various style middlewares. In the paper, the proposed approach is illustrated by a case study.