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) {
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @baw_gov ,
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
Hi @baw_gov ,
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
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?
Views
Likes
Replies
Views
Likes
Replies