CASE 02 / UPGRADE / OSGI / CLOUD READINESS

AEM 6.5 LTS Modernization: Java, OSGi and Legacy Code Readiness

An AEM 6.5 LTS proof of concept should answer which customizations can move, which need refactoring and what remains unproven. This representative assessment separates Java and dependency compatibility from OSGi service behavior and production-readiness evidence.

SHARE
LinkedIn X Facebook Threads

Engineering path

Engineering path

Proposed engineering sequence

  1. 01Current AEM
  2. 02Code audit
  3. 03Dependency review
  4. 04OSGi / API remediation
  5. 05Dispatcher / Oak validation
  6. 06Release readiness

01 / Context

Use the LTS PoC to expose compatibility gaps

PLATFORM
AEM 6.5 / 6.5 LTS assessment
SCOPE
Application · OSGi · Dispatcher · Oak
TYPE
Architecture exploration / proposed PoC

Declare the exact target release and verify its supported runtime and dependencies against current Adobe documentation. This page deliberately avoids a universal Java-version prescription, because compatibility must be assessed against the selected baseline.

02 / THE ENGINEERING PROBLEM

Legacy code can compile and still fail at activation

Compilation, bundle resolution and service activation are different checkpoints. Older annotations, unavailable APIs and dependency imports should be examined independently instead of grouped under a single upgrade task.

03 / CONSTRAINTS

Boundaries the design must preserve

  1. Preserve component and content contracts while changing dependencies.
  2. Match Java, APIs and build dependencies to the selected supported baseline.
  3. Keep configuration PIDs and service reference behavior intentional.
  4. Define recovery and regression checks before a proposed release.

04 / ARCHITECTURE

Separate the dependency baseline from the service contract

Keep a reviewed dependency inventory alongside the expected OSGi service interfaces and configuration PIDs. Validate repository queries and Dispatcher behavior as consumers of the modernized application, rather than assuming a Java refactor leaves them unaffected.

SYSTEM / FLOW

Separate compatibility from application behavior

Proposed assessment paths; neither stream constitutes recorded production validation.

PLATFORM BASELINERuntime +dependenciesBundle importsGenerated DSmetadataAPPLICATION CONTRACTServices +configurationContent + queriesDispatcherbehaviorCOMBINED PATHAcceptanceevidenceReadinessdecision

Platform baseline

  1. Runtime + dependencies
  2. Bundle imports
  3. Generated DS metadata

Application contract

  1. Services + configuration
  2. Content + queries
  3. Dispatcher behavior

Combined path

  1. Acceptance evidence
  2. Readiness decision

05 / IMPLEMENTATION

Refactor one compatibility boundary at a time

Identify deprecated APIs and legacy SCR annotation usage, then plan replacements compatible with the target platform. Check generated component metadata and activation behavior when moving services to OSGi DS.

  • Review Maven dependency convergence and bundle imports.
  • Exercise service configuration, activation and reference availability.
  • Run component, integration, Oak query and Dispatcher regression checks.

Modernize one boundary at a time

A proposed implementation sequence, not a completed delivery record.

  1. 01Audit dependencies
  2. 02Remediate APIs / SCR
  3. 03Inspect DS descriptors
  4. 04Exercise services
  5. 05Retest cache / queries
  6. 06Rehearse release

06 / TECHNICAL DECISIONS

Replace legacy SCR annotations with explicit DS contracts

Use OSGi Declarative Services annotations supported by the target AEM baseline, while preserving intentional service interfaces, PIDs and reference filters. Review generated component descriptors as an output of the change. Convert each PoC finding into a reproducible acceptance check rather than relying on a one-off demonstration.

07 / TRADEOFFS

Modernization and cloud readiness share patterns, not acceptance gates

DS remediation requires refactoring and runtime regression validation; it is not a mechanical import replacement. Keeping legacy annotations avoids that immediate cost but prolongs upgrade coupling. Externalized configuration supports future cloud adoption, but cloud package structure, deployment assumptions and runtime constraints still need their own assessment.

Decisions and their cost
DecisionBenefit soughtTradeoff
Refactor SCR to supported DSExplicit service contractsDescriptor and runtime regression checks required
Externalize configurationClear environment boundariesConfiguration failure paths need validation
Separate LTS and Cloud gatesAvoid false readiness claimsMaintain distinct acceptance evidence

For the service design behind those refactors, examine OSGi configuration and dependency boundaries.

08 / VALIDATION

Validate the runtime and the application independently

Retain separate results for the platform baseline and custom code. The PoC is a readiness assessment, not evidence of a completed production migration.

  • Record the selected runtime, dependency and package versions.
  • Verify expected services are satisfied and functional after restart.
  • Repeat authoring, content access, query and cache tests after refactoring.

Validation scope — proposed, not measured

TO VALIDATE

Acceptance checklist

  • Bundle activation and service references after restart
  • Configuration reload behavior
  • Dispatcher cold/warm cache and invalidation
  • Oak index selection and content compatibility
  • Deployment and recovery path

NOT CLAIMED

Evidence boundaries

  • No completed client production migration
  • No measured performance or production-scale benchmark
  • No validated AEMaaCS behavior
  • No recorded pass results for this representative scenario

09 / FAILURE MODES

Failure modes to test before release

Replacing SCR annotations can leave the expected service absent if generated DS metadata, configuration PIDs or reference target filters change. Compare the generated descriptors and test activation after a clean restart and configuration reload; a successful Maven build alone cannot establish service availability.

Failure rehearsal
RiskImpactMitigation to validate
Changed DS metadata or reference filterExpected service unavailableCompare descriptors; restart and reload configuration
Dependency import mismatchBundle cannot resolveInspect imports against the target baseline
Cache masks rendering regressionWarm response conceals failureExercise cold, warm and invalidated requests

10 / LESSONS LEARNED

Keep the upgrade backlog specific

A finding such as “service reference unavailable after configuration reload” is actionable. A broad label such as “legacy code” does not explain what needs to change or how it will be verified.

Technical references

These sources document product behavior. The scenario and proposed validation are engineering interpretations, not vendor claims or execution evidence.

11 / CONTINUE EXPLORING

Related engineering work

Related Lab notes

12 / SHARE

SHARE THIS CASE STUDY

SHARE
LinkedIn X Facebook Threads

Working through a similar platform problem?

Start a conversation