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.
Engineering path
Engineering path
Proposed engineering sequence
- 01Current AEM
- 02Code audit
- 03Dependency review
- 04OSGi / API remediation
- 05Dispatcher / Oak validation
- 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
- Preserve component and content contracts while changing dependencies.
- Match Java, APIs and build dependencies to the selected supported baseline.
- Keep configuration PIDs and service reference behavior intentional.
- 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.
Separate compatibility from application behavior
Proposed assessment paths; neither stream constitutes recorded production validation.
Platform baseline
- Runtime + dependencies
- Bundle imports
- Generated DS metadata
Application contract
- Services + configuration
- Content + queries
- Dispatcher behavior
Combined path
- Acceptance evidence
- 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.
- 01Audit dependencies
- 02Remediate APIs / SCR
- 03Inspect DS descriptors
- 04Exercise services
- 05Retest cache / queries
- 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.
| Decision | Benefit sought | Tradeoff |
|---|---|---|
| Refactor SCR to supported DS | Explicit service contracts | Descriptor and runtime regression checks required |
| Externalize configuration | Clear environment boundaries | Configuration failure paths need validation |
| Separate LTS and Cloud gates | Avoid false readiness claims | Maintain 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.
| Risk | Impact | Mitigation to validate |
|---|---|---|
| Changed DS metadata or reference filter | Expected service unavailable | Compare descriptors; restart and reload configuration |
| Dependency import mismatch | Bundle cannot resolve | Inspect imports against the target baseline |
| Cache masks rendering regression | Warm response conceals failure | Exercise 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.