Skip to content

Instantly share code, notes, and snippets.

@hemanth415
Created June 1, 2020 19:54
Show Gist options
  • Save hemanth415/33c7e5bed74d417d054f30d92fdc81b3 to your computer and use it in GitHub Desktop.
Save hemanth415/33c7e5bed74d417d054f30d92fdc81b3 to your computer and use it in GitHub Desktop.
Replication Event not getting caught.

We have a use case to catch the replication event of a resource in the authoring and perform some manipulation on it. We are leveraging org.osgi.service.event.EventHandler to catch this event. We have observed, occasionally this event is not getting caught. We tried to troubleshoot the issue and found the cause of the issue to be the event getting blacklisted.

Similar to https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/custom-replication-event-handler-not-triggering-intermittently/qaq-p/279325

Updating the org.apache.felix.eventadmin.impl.EventAdmin fixed our issue. But as per the below documentation. This OSGi configuration marked as deprecated.

https://helpx.adobe.com/experience-manager/6-4/sites/developing/using/reference-materials/javadoc/deprecated-configurations.html

We found a solution, to leverage Sling Jobs to process the already caught event. This is a perfectly apt approach.

Reference: https://www.linkedin.com/pulse/aem-how-write-sling-jobs-aem-veena-vikraman

FYI: We are on AEM 6.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment