Sling content distribution not working | Community
Skip to main content
Level 2
Jun 16, 2021 11:03 PM UTC
Solved

Sling content distribution not working

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.
Ritesh_Mittal
Ritesh_MittalAccepted solution
New Participant
Jun 17, 2021 1:41 PM UTC

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

shelly-goel
Employee
Jun 21, 2021 4:54 AM UTC

@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?

Translate
Ritesh_Mittal
Ritesh_MittalAccepted solution
New Participant
Jun 17, 2021 1:41 PM UTC

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

Translate