[论文解读] Service-Oriented Re-engineering of Legacy JEE Applications: Issues and Research Directions
本文针对将遗留 Java EE(JEE)应用重构为面向服务架构(SOA)所面临的挑战,通过识别可重用功能、将其打包为服务,并重构现有代码以调用这些服务来应对。提出了一种服务类型的分类法,指出由于 JEE 的多层、多语言及容器依赖特性,静态代码分析面临的问题,并概述了服务识别、打包及架构重构的关键研究方向,以提升可维护性和重用性。
Service-orientation views applications as orchestrations of independent software services that (1) implement functions that are reusable across many applications, (2) can be invoked remotely, and (3) are packaged to decouple potential callers from their implementation technology. As such, it enables organizations to develop quality applications faster than without services. Legacy applications are not service-oriented. Yet, they implement many reusable functions that could be exposed as \emph{services}. Organizations face three main issues when re-engineering legacy application to (re)use services: (1) to mine their existing applications for reusable functions that can become services, (2) to package those functions into services, and (3) to refactor legacy applications to invoke those services to ease future maintenance. In this paper, we explore these three issues and propose research directions to address them. We choose to focus on the service-oriented re-engineering of recent legacy object-oriented applications, and more specifically, on JEE applications, for several reasons. First, we wanted to focus on architectural challenges, and thus we choose to extit{not} have to deal with programming language difference between source and target system. We chose JEE applications, in particular, because they embody the range of complexities that one can encounter in recent legacy applications, namely, multi-language systems, multi-tier applications, the reliance on external configuration files, and the reliance on frameworks and container services during runtime. These characteristics pose unique challenges for the three issues mentioned above.
研究动机与目标
- 解决将遗留 JEE 应用迁移至面向服务架构(SOA)的架构挑战,以提升可重用性和可维护性。
- 识别遗留 JEE 应用中可作为服务发布的可重用功能模块。
- 开发有效的方法,实现服务打包,抽象实现细节,同时确保接口内聚性与客户端友好性。
- 研究将现有 JEE 应用从调用-返回模式迁移至消息导向服务调用模式的重构策略。
- 提出研究议程,指导未来针对企业级遗留系统 SOA 重构工作的开展,重点关注源代码级别的转换。
提出的方法
- 基于功能特征和使用模式提出服务分类法,以指导特定类型的服务识别标准。
- 应用增强依赖关系映射的静态代码分析技术,以发现来自 JEE 特有机制(如配置文件、EJB 和容器服务)的隐藏依赖。
- 提出两阶段服务打包方法:(1) 通过功能聚类和内聚性分析定义接口边界;(2) 聚焦参数粒度和对象生命周期管理的接口设计。
- 探索架构重构技术,实现从 JEE 传统调用-返回风格向消息导向通信的迁移,包括处理调用序列等价性和错误处理。
- 利用知识发现元模型(KDM)作为在重构过程中捕获架构级知识的存储库。
- 以源代码分析为主要输入,避免语言级别转换,聚焦于架构迁移挑战。
实验结果
研究问题
- RQ1如何在考虑不同服务类型及其独特代码签名的前提下,有效识别遗留 JEE 应用中的候选服务?
- RQ2由于 JEE 应用具有多层、多语言及容器依赖的架构特性,静态代码分析面临哪些关键挑战?
- RQ3如何自动指定和设计服务接口,以确保内聚性、可重用性及客户端友好性?
- RQ4将 JEE 应用从调用-返回模式重构为消息导向服务调用模式,其架构影响和技术挑战是什么?
- RQ5如何利用 KDM 等形式化模型,在 SOA 重构过程中保留并建模现有架构知识?
主要发现
- 提出了一种服务分类法,根据使用模式区分服务类型,从而支持类型特定的识别标准,提升检测准确性。
- JEE 的静态代码分析显著受非 Java 链接机制(如 XML 配置文件、EJB 容器契约和依赖注入)的阻碍,需在标准 AST 分析基础上增强依赖关系映射。
- 服务打包需要两步走:首先通过功能聚类定义接口边界,其次通过详细接口设计管理参数粒度和对象生命周期。
- 将遗留 JEE 应用重构为使用消息导向服务,会引发架构层面的转变,尤其体现在调用模式、序列等价性及错误传播的处理上。
- 现有文献对服务识别提供了有力支持,但缺乏针对不同服务类型及 JEE 系统中架构约束的定制化解决方案。
- 本研究识别出在架构风格迁移方面,特别是从过程式调用-返回模式向异步消息驱动模式迁移的重构方法论存在关键空白。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。