Skip to main content
QUICK REVIEW

[Paper Review] Service-Oriented Re-engineering of Legacy JEE Applications: Issues and Research Directions

Hafedh Mili, Ghizlane El Boussaidi|arXiv (Cornell University)|Jun 3, 2019
Service-Oriented Architecture and Web ServicesComputer Science14 references3 citations
TL;DR

This paper addresses the challenges of re-engineering legacy Java EE (JEE) applications into service-oriented architectures by identifying reusable functions, packaging them as services, and refactoring existing code to invoke these services. It proposes a taxonomy of service types, highlights issues in static code analysis due to JEE's multi-tier, multi-language, and container-dependent nature, and outlines key research directions for service identification, packaging, and architectural refactoring to improve maintainability and reuse.

ABSTRACT

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.

Motivation & Objective

  • Address the architectural challenges of migrating legacy JEE applications to service-oriented architecture (SOA) to improve reusability and maintainability.
  • Identify reusable functional clusters within legacy JEE applications that can be exposed as services.
  • Develop methods for effective service packaging that abstract implementation details while ensuring interface cohesion and client usability.
  • Investigate refactoring strategies to transition existing JEE applications from call-and-return to message-oriented service invocation patterns.
  • Provide a research agenda to guide future work on SOA re-engineering of enterprise legacy systems, focusing on source code-level transformation.

Proposed method

  • Propose a service taxonomy based on functional characteristics and usage patterns to guide type-specific identification criteria.
  • Apply static code analysis enhanced with dependency mapping to uncover hidden dependencies from JEE-specific mechanisms like configuration files, EJBs, and container services.
  • Introduce a two-phase approach to service packaging: (1) interface specification via functional clustering and cohesion analysis, and (2) interface design focusing on parameter granularity and object lifecycle management.
  • Explore architectural refactoring techniques to migrate from JEE’s traditional call-and-return style to message-oriented communication, including handling sequence equivalence and error handling.
  • Leverage the Knowledge Discovery Metamodel (KDM) as a repository for capturing architectural-level knowledge during re-engineering.
  • Use source code analysis as the primary input, avoiding language-level transformations to focus on architectural migration challenges.

Experimental results

Research questions

  • RQ1How can we effectively identify candidate services in legacy JEE applications, considering different service types and their distinct code signatures?
  • RQ2What are the key challenges in static code analysis of JEE applications due to multi-tiered, multi-language, and container-dependent architectures?
  • RQ3How can service interfaces be automatically specified and designed to ensure cohesion, reusability, and client-friendliness?
  • RQ4What are the architectural implications and technical challenges of refactoring JEE applications from call-and-return to message-oriented service invocation?
  • RQ5How can existing architectural knowledge be preserved and modeled during SOA re-engineering using formal models like KDM?

Key findings

  • A service taxonomy is proposed to differentiate service types based on usage patterns, which enables type-specific identification criteria and improves detection accuracy.
  • Static code analysis in JEE is significantly hampered by non-Java linkage mechanisms such as XML configuration files, EJB container contracts, and dependency injection, requiring enhanced dependency mapping beyond standard AST analysis.
  • Service packaging requires a two-step process: functional clustering to define interface boundaries and detailed interface design to manage parameter granularity and object lifecycle.
  • Refactoring legacy JEE applications to use message-oriented services introduces architectural shifts, particularly in handling invocation patterns, sequence equivalence, and error propagation.
  • The current literature provides strong support for service identification but lacks solutions tailored to different service types and architectural constraints in JEE systems.
  • The research identifies a critical gap in refactoring methodologies for architectural style migration, especially from procedural call-and-return to asynchronous message-based patterns in enterprise systems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.