WCMUsePojo can be used in AEMasCS based project | Community
Skip to main content
Level 4
June 7, 2024
Solved

WCMUsePojo can be used in AEMasCS based project

  • June 7, 2024
  • 2 replies
  • 1254 views

Hi Team,

One of the project in AEMasCS is still on WCMUsePojo . Is it recommended to move to SlingModel. How long WCMUsePojo will be supported by Adobe?
(The project development started only 2023 but the Vendor using WCMUsePojo, instead of SlingModel )

 

Thanks,
Geo

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
June 7, 2024
georhe6Author
Level 4
June 7, 2024

Thanks @arunpatidar 

HrishikeshKagne
Community Advisor
Community Advisor
June 7, 2024

Hi @georhe6 ,

Yes, WCMUsePojo can be used in an AEM as a Cloud Service (AEMasCS) based project. However, it is recommended to use Sling Models instead of WCMUsePojo for several reasons:

1. Sling Models are more efficient than WCMUsePojo as they use fewer resources and provide better performance.
2. Sling Models are easier to test as they follow the standard Java POJO (Plain Old Java Object) pattern.
3. Sling Models provide better support for dependency injection, making it easier to manage dependencies between components.

Adobe has not announced any plans to deprecate or remove WCMUsePojo from AEM. However, Adobe recommends using Sling Models for new development and migrating existing code to Sling Models whenever possible.

If the project development started in 2023 and the vendor is still using WCMUsePojo instead of Sling Models, it is recommended to migrate to Sling Models as soon as possible to take advantage of their benefits.

Hrishikesh Kagane
georhe6Author
Level 4
June 7, 2024

Thanks,@hrishikeshkagne