AEM Sling Content Distribution Event Listener | Community
Skip to main content
rampai
Community Advisor
Community Advisor
May 7, 2021
Solved

AEM Sling Content Distribution Event Listener

  • May 7, 2021
  • 2 replies
  • 3078 views

Hi All,

 

As AEM as a Cloud Service is based on Sling Content Distribution mechanism, are there any references on how to create a custom event handler that can capture the content distribution event and whether it was an ADD or a DELETE that was triggered?

 

I am going through the sling documentation but if there is anyone who has already done this, would appreciate your support.

 

Thanks,

Ram

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

Hi @rampai ,

 

The Sling event handler can be utilized for this requirement which is org.osgi.service.event.EventHandler.

Eventually we are touching the node (ADDED/REMOVED, etc) and sling event will be able to capture that. In handler itself you can check the type of event.

 

You can watch this video for more understanding.

Git - https://github.com/riteshmittal/aemscheduler-even-handling

2 replies

Pawan-Gupta
Level 8
May 7, 2021
Ritesh_Mittal
Community Advisor and Adobe Champion
Ritesh_MittalCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
May 8, 2021
 
 

Hi @rampai ,

 

The Sling event handler can be utilized for this requirement which is org.osgi.service.event.EventHandler.

Eventually we are touching the node (ADDED/REMOVED, etc) and sling event will be able to capture that. In handler itself you can check the type of event.

 

You can watch this video for more understanding.

Git - https://github.com/riteshmittal/aemscheduler-even-handling