Issue with JCR Event Listener in AEMaaCS Migration (Alternative Approach Needed)
We are migrating our AEM instance from AEM 6.5 to AEM as a Cloud Service (AEMaaCS). In our current implementation, we use a JCR Event Listener that listens to all component changes. Whenever inheritance is canceled for a component, the listener adds the property:
to the parent node.
Problem:
During the migration assessment using BPA (Best Practices Analyzer), we found that JCR Event Listeners are flagged as an issue because they are not recommended in AEMaaCS due to performance concerns.
Question:
What is the best alternative approach in AEMaaCS to achieve the same functionality? Some potential options I’m considering:
- ResourceChangeListener – Can it effectively replace the JCR Event Listener for this use case ,but it is also getting flagged in bpa report?
- Workflow Launcher – Would this be a viable alternative to automatically add cq:isCancelledForChildren = true when inheritance is canceled?
- sling jobs – Could a scheduled job periodically check and update the required properties instead of real-time event listening?
Has anyone implemented a similar functionality in AEMaaCS? Any best practices or recommendations would be appreciated!
Thanks in advance for your insights!