Sling content distribution not working | Community
Skip to main content
Level 2
June 16, 2021
Solved

Sling content distribution not working

  • June 16, 2021
  • 2 replies
  • 1293 views

I am using  sling distribution agent package distributed but its not working for me.
This is what I have.

@Component(immediate = true, service = EventHandler.class, property = { "event.topics=org/apache/sling/distribution/agent/package/distributed",
"event.filter=(|(distribution.type=ADD)(distribution.type=DELETE))" })
public class CDEventHandler implements EventHandler {

 

@Override
public void handleEvent(Event event) {

 

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 @gbaweja ,

 

Please check if your component is active by going to http://<host>:<port>/system/console/components and search for "CDEventHandler".

 

Also, if you are not doing any custom logic implementation inside your handler and just want content distribution then we have another way as well. you can refer below video for that-

 

https://www.youtube.com/watch?v=z6nf2QSUM8k

2 replies

Ritesh_Mittal
Community Advisor and Adobe Champion
Ritesh_MittalCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
June 17, 2021

Hi @gbaweja ,

 

Please check if your component is active by going to http://<host>:<port>/system/console/components and search for "CDEventHandler".

 

Also, if you are not doing any custom logic implementation inside your handler and just want content distribution then we have another way as well. you can refer below video for that-

 

https://www.youtube.com/watch?v=z6nf2QSUM8k

shelly-goel
Adobe Employee
Adobe Employee
June 21, 2021

@gbaweja 

you can try using a different event topic i.e.org/apache/sling/distribution/agent/package/created

BTW which version of AEM you're using?